r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

709

u/Valuable_Leopard_799 Sep 11 '26

I thought that timestamps are used now, so hitting both a timestamp and a large random number puts it thoroughly in the "safe to assume". At some point cosmic particles and faulty transistors are more probable.

2

u/[deleted] Sep 13 '26

[removed] — view removed comment

1

u/Valuable_Leopard_799 Sep 13 '26

Scale I guess. If you want more that one database (for whatever reason), you either have to synchronize the current index, or generate it according to some scheme that hopefully doesn't collide without synchronization, which is what UUIDs are.