News for hackers. Stuff that matters.
Re:2^120 Ways to Ensure Unique Identifiers by SeoxyS on Wednesday February 11, 2015 @11:13PM (#9037335)
This has always been my favorite way to generate IDs, though I typically do it with a 64bit integer and a custom epoch.

Being able to store keys as 64bit integers is much easier to work with, and also much more efficient than b64 encoding. In the odd case you're working with a language that can't handle numbers (ahem… javascript), you can always encode it as a string.

Here's a library that implements this method: https://github.com/Fubelly/rubyflake

Re:2^120 Ways to Ensure Unique Identifiers by jimktrains2 on Thursday February 12, 2015 @01:35AM (#9037731)
I love snowflakes:)

I wrote a little rust implementation[1] also

[1] https://github.com/jimktrains/rustflake