Remix.run Logo
▲ blauditore 3 hours ago

There's a chance some dev did this as a joke of sorts (referring to the comic) and somehow it landed in prod. So it might not even be a coincidence. But we might never find out.

▲hannob 3 hours ago | parent [-]

There were 8 affected keys and only one was d=4, all were single-byte values. Very much looks like a byte-truncated value.

▲nraynaud an hour ago | parent | next [-]

That’s also what the post mortem said, they crushed the high-order bytes of “quality” keys.

▲embedding-shape 2 hours ago | parent | prev [-]

Yeah, in this particular case I agree. Although "some dev did this as a joke of sorts and somehow it landed in prod" is still true, some years ago I added a get_pseudo_random_number function that returns 4 to at least one application currently running in production, I'm sure I'm not alone :)

▲8organicbits 4 minutes ago | parent [-]

I've built one as well. Mine is a joke about the lack of uniqueness guarantees in UUIDv8. I don't believe anyone uses mine though.

https://github.com/robalexdev/uuidv8-xkcd-221