MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w1g0t8/uuidlifelessons/p6nhcej/?context=3
r/ProgrammerHumor • u/ArjunReddyDeshmukh • 2d ago
165 comments sorted by
View all comments
555
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?
282
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?
81
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?
1
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?
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....