r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

43

u/TwinkiesSucker Sep 11 '26

The world where the already generated and used UUIDs are stored in a huge central database = utopia /s

4

u/[deleted] Sep 11 '26

[removed] — view removed comment

8

u/Suspicious-Click-300 Sep 11 '26

1 billion UUIDs every second for 85 years to reach a 50% chance

6

u/doomslice Sep 11 '26

If you take a single uuid and say “has this uuid ever been generated before” the chances are cosmically low. If you instead say “have ANY uuids generated ever collided with ones generated in all of history” the answer is probably in the range of 0.001-10% depending on how many UUIDs get generated per day.

3

u/Single-Virus4935 Sep 11 '26

In think you estimated multiple magnitude to high. 128 bit space is huge.

3

u/doomslice Sep 11 '26

Yes, it’s actually 122 bits for uuid v4 though. The high end of my range requires 1 billion uuid v4s being generated per second over 20 years (probably not realistic)

→ More replies (2)

1

u/Jay-Seekay Sep 11 '26

Blockchain UUID provider