May 8, 2026
Random ID or random chaos?
Ask HN: We just had an actual UUID v4 collision...
A “basically impossible” ID clash sent commenters straight into panic, jokes, and lottery talk
TLDR: A developer says their system generated the exact same “random” ID twice a year apart, which is so unlikely that commenters instantly suspected a hidden bug before bad luck. The thread became a brawl between skeptics, fix-it suggestions, and lottery-ticket jokes over whether this was a true freak event or human error in disguise.
A tiny database with only about 15,000 records somehow produced the kind of repeat computer-made ID people treat like a lightning-strike-level freak accident—and the internet absolutely refused to stay calm. The original poster said their system generated a fresh random ID using the popular uuid package, only for it to match one created a year earlier. Same exact string. Same exact disbelief. And instantly, the comment section turned into a mix of detective squad, probability nerds, and stand-up comedy night.
The strongest reaction by far was basically: there is no way this is the real explanation. One commenter tossed out a jaw-dropping “1 in 47.3 octillion” style estimate and said they’d be hunting for a race condition or some painfully simple bug before believing fate had really rolled these dice. Another leaned into the absurdity with the now-inevitable joke: if this is real, someone needs to buy lottery tickets immediately. That became the mood of the thread—equal parts skepticism and cosmic-horror laughter.
But not everyone was just dunking. Some commenters tried to troubleshoot in plain terms: could the ID have been created on a phone first, then later on a server, with something weird happening in between? Others wandered into a mini-debate over whether a newer version of this ID system would actually help or secretly make clashes more likely in some situations. And then came the wonderfully chaotic hot take: why not just slap the date onto it and move on? Purists may cringe, but for a thread this shaken, anything that sounds less cursed suddenly has fans.
Key Points
- •The author reports that their database detected a duplicate UUID v4.
- •The original UUID was attached to a record added in 2025, and a new insert reportedly generated the same value.
- •The duplicate UUID shown in the article is `b6133fd6-70fe-4fe3-bed6-8ca8fc9386cd`.
- •The system uses the npm `uuid` package and generates identifiers by calling `uuidv4()` without modification.
- •The author says the database contains about 15,000 records and describes the collision as statistically implausible.