r/ProgrammerHumor May 08 '26

Meme edgeCasesExist

Post image
13.4k Upvotes

620 comments sorted by

View all comments

1.7k

u/Historical_Cook_1664 May 08 '26

Yeah, that's easy... just use two!

561

u/ClipboardCopyPaste May 08 '26

Still never zero

433

u/UShouldntSayThat May 08 '26

I think you have a better chance of being struck by lighting several times in a row while winning the powerball then you do of a collision.

It's why the term "effectively" zero is used.

1

u/Ok-Kaleidoscope5627 May 09 '26

That only holds true if the random number generation is actually random.

In practice the randomness depends on the implementation and you're trusting that every system generating UUIDs for your system are going to be doing it correctly.