Ask HN: We just had an actual UUID v4 collision...
81–90 of 369 posts
Re: Ask HN: We just had an actual UUID v4 collision...
#82Please, do not use b6133fd6-70fe-4fe3-bed6-8ca8fc9386cd, I checked my database and I was using it already.
I always thought generating UUIDs at random was insane. I now only use LLMs. The prompt is: "generate a UUID. Make sure no one ever used it anywhere in their code or database. Check your work and think hard about each step. Do not output any reasoning or plain English, only th UUID itself". You're welcome.
Re: Ask HN: We just had an actual UUID v4 collision...
#83Earlier quoted context omitted.
Pffft - they didn't need to store the whole UUID, just a hash. Dummies.
They thought of that, but they were still working on hiring a team to maintain the hashing microservice.
Re: Ask HN: We just had an actual UUID v4 collision...
#84Funny story no one will believe, but it’s true. A good friend of mine joined a startup as CTO 10 years ago, high growth phase, maybe 200 devs… In his first week he discovered the company had a microservice for generating new UUIDs. One endpoint with its own dedicated team of 3 engineers …including a database guy (the plot thickens). Other teams were instructed to call this service every time they needed a new ‘safe’…
Pffft - they didn't need to store the whole UUID, just a hash. Dummies.
Re: Ask HN: We just had an actual UUID v4 collision...
#85What you're talking about is so extremely rare that it's much more likely that the entire Earth is destroyed by an asteroid right this inst...
Re: Ask HN: We just had an actual UUID v4 collision...
#86Re: Ask HN: We just had an actual UUID v4 collision...
#87Re: Ask HN: We just had an actual UUID v4 collision...
#88What you're talking about is so extremely rare that it's much more likely that the entire Earth is destroyed by an asteroid right this inst...
For a single database using UUIDs, yes, it's astronomically rare. But it's quite a different thing to say that no computer system on Earth has ever experienced a UUID collision. The number of systems out there is also astronomical.
Not even close
Re: Ask HN: We just had an actual UUID v4 collision...
#89According to the many-worlds interpretation of quantum mechanics, there's bound to be one branch of universe where every UUID is the same. Can you imagine what those guys are thinking?