Hacker News new | ask | show | jobs
by TomatoCo 104 days ago
You have to generate random bytes with sufficient entropy to avoid collisions and you have to have a consistent way to serialize it to a string. There's already a standard for this, it's called UUID.