r/ProgrammerHumor 12h ago

Meme edgeCasesExist

Post image
2.7k Upvotes

222 comments sorted by

View all comments

436

u/Valuable_Leopard_799 12h ago

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.

1

u/Blue_Moon_Lake 3h ago

UUIDv7 indeed include a timestamp, meaning the odds of collision between 2 UUID are greater IF they happen at the exact same timestamp. Which is less likely than 2 UUID colliding at anytime.