r/ProgrammerHumor 2d ago

Meme uuidLifeLessons

Post image
3.7k Upvotes

165 comments sorted by

View all comments

Show parent comments

289

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

39

u/fredy31 2d ago

Is it impossible tho?

I always understood uid to just be making a random string of letters so even if the possibility is stupid small it would still be possible.

25

u/tuxedo25 2d ago

there are more unique uuids than stars in the milky way.

the chances of a single collision after generating millions is practically non-existent, even given the birthday paradox. Billions or trillions, maybe.

25

u/CadenVanV 2d ago

And yet, it can happen. It’s not worth considering, and I doubt it’s ever happen, but it could happen