Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
avar
on Feb 12, 2015
|
parent
|
context
|
favorite
| on:
2^120 Ways to Ensure Unique Identifiers
If you generate ids like:
<fixed width timestamp><random data>
Your ids are guaranteed to be sorted chronologically until you start generating them at the same time. So as a hack to work around that they generate:
<fixed width timestamp><fuzzed random data>
Where the fuzz to the random data ensures that it's sorted chronologically.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: