logoalt Hacker News

gzreadyesterday at 12:04 PM1 replyview on HN

If you want 128 bits of randomness why not use 128 bits of randomness? A random UUID presupposes the random number has to fit in UUID format.


Replies

da_chickenyesterday at 1:03 PM

122 bits of randomness.

It's the same reason we use UTF-8. It's well supported. UUIDs are well supported by most languages and storage systems. You don't have to worry about endianness or serialization. It's not a thing you have to think about. It's already been solved and optimized.

show 1 reply