Hacker News new | ask | show | jobs
by xyst 566 days ago
Every uuid dot com except if greater than 2^122 -1 doesn’t have the same ring ;)
1 comments

There aren't more than 2^122 UUIDv4s.
This reminds me of some code I stumbled on recently, where someone had implemented a custom exception they could throw if their 32-bit loop counter was greater than the maximum value of a 32-bit integer.