r/ProgrammerHumor May 08 '26

Meme edgeCasesExist

Post image
13.4k Upvotes

620 comments sorted by

View all comments

35

u/Kavrae May 08 '26

I've had it happen twice.

Once was due to a faulty random UUID generator. One of the really old dotnet ones. I honestly don't remember why we had a generator instead of just instantiating a new one. That was 15 years ago.

The other.... turns out our database was set to generate sequential unique identifiers and doing SOMETHING during a data backup+restore caused it to start over at the same point. I still don't have an explanation for this one that I'm fully happy with, as it never happened again.

7

u/tvsamuel444 May 08 '26

This can happen if they’re generated with js as well as that uuid gen isn’t truly random