logoalt Hacker News

jasomillyesterday at 10:47 AM2 repliesview on HN

1/64, actually, because RFC-compliant (variant 1) UUIDv4 requires fixed values for both the version nibble and two bits of the variant nibble.

The fact that we're discussing this at all is a reasonable argument for using a library function.


Replies

3eb7988a1663yesterday at 4:19 PM

While it might be invalid, will most libraries choke if you give them a pseudo UUIDv4?

rollulusyesterday at 4:17 PM

Nice, thanks and I agree.