logoalt Hacker News

TomatoCoyesterday at 5:13 PM0 repliesview on HN

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.