News for hackers. Stuff that matters.
Re:Ask HN: We just had an actual UUID v4 collision... by hmry on Friday May 08, 2026 @01:35PM (#48066296)
I wouldn't say it's "to blame", but it is more susceptible to bad RNG.

If the RNG is bad, you'll get more benefit from adding non-random bits than you would from additional badly RNG'd bits.

The probability of future collisions also rises the more IDs you generate. If you incorporate non-random bits, you can alleviate that:

- timestamps make the collision probability not grow over time as you accumulate more existing UUIDs that could collide

- known-distinct machine IDs make the collision probability not grow as you add more machines

There are no comments on this comment yet.