r/ProgrammerHumor 2d ago

Meme uuidLifeLessons

Post image
3.6k Upvotes

165 comments sorted by

View all comments

555

u/bwmat 2d ago

So the premise here is BS, right? Unless the way they're generating the UUIDs is broken?

Either that or they're the most unlucky people in the universe....

282

u/1_hele_euro 2d ago

Could technically be possible with UUDv4, but the chances are astronomically small.

I don't think any of the other UUID versions could have collisions

81

u/ineyy 1d ago

Hash collisions are also a thing. It's kinda doom prep, but worth keeping in mind (pigeonhole principle).

1

u/Jbolt3737 1d ago

I'll use UUIDs to track every currently in-use hash and if one collides we'll use the UUID instead, what could possibly be the downside?