sony / sonyflake

A distributed unique ID generator inspired by Twitter's Snowflake
MIT License
3.89k stars 304 forks source link

Add NewReproducibleID() #25

Open kamstrup opened 3 years ago

kamstrup commented 3 years ago

For build systems, unit tests, research, and a range of other contexts it is useful to be able to generate reproducible IDs. Similar to controlling the random seed of a RNG. This branch adds a new method NextReproducibleID() with this feature.

Thanks for an awesome library :-)