logoalt Hacker News

whateveracctyesterday at 6:09 AM2 repliesview on HN

I treat UUIDv4s as 128 random bits and it triggers ppl.


Replies

gzreadyesterday at 12:18 PM

It needs several non-random bits to mark it as a v4 or it's not a uuidv4

masklinnyesterday at 9:27 AM

To be fair that’s literally just a waste of resources. If you want 128 random bits just get 128 random bits from the underlying source, unless your host langage is amazingly deficient it’s just as easy.