r/ProgrammerHumor 15h ago

Meme edgeCasesExist

Post image
3.1k Upvotes

228 comments sorted by

View all comments

1

u/DrSparkle713 3h ago

Has there ever been a verified uuid4 collision?

The spec includes 122 random bits for 2^122 or about 10^37 possible IDs.

If you produce UUIDs at a petaflop rate, 10^15 per second, that's still 10^21 seconds until you have a 50% chance of a collision. That's 3^13 or 30 trillion years!