Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nubinetwork
51 days ago
|
parent
|
context
|
favorite
| on:
Ask HN: We just had an actual UUID v4 collision...
The smart way would be to check if the id is in use, and generate a new one... Repeat a few times if you're extremely unlucky, and bail out with an error if you have the absolute worst rng. It also works for locally generated ids as well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: