This allows better data race protection and makes it more possible to
have multi nodes running on the same program with different options. A
temp global mutex was added to protect data races caused by NewNode
until the deprecated variables are removed. fixed#15
You can now set the snowflake.NodeBits or snowflake.StepBits to
custom values. Please keep in mind you have a total of 22 bits
available to use between these two values. Setting these to
inappropriate values may break things. So take care to understand
what you're doing here.
This is not the best way of doing this but it does not break
API compatibility with existing users of this package. I will
release a version 2 of this package which will implement this
feature better.
Including this added 60KB to the compiled library which I do not think
is worth it just to include a helper function consisting of about 4
lines of code.