4 ms·
Wait, is this blog actually about how to introduce a backdoor into your Postgres install by rolling your own very bad rng?
by manwe150 2y ago
Wait, is this blog actually about how to introduce a backdoor into your Postgres install by rolling your own very bad rng?
- fanf2 2y agoNo, a v4 uuid comes from a good RNG. The blog post just said v6 by mistake when it meant v4.
- thadt 2y agoNah, mhio is saying that the blog post has a typo: > Postgres 13’s gen_random_uuid() which generates a V6 UUID that’s secure... gen_random_uuid gives you a version V4 UUID, not a V6 UUID (it's even in the code comments in the snipped included in the blog). I don't believe Postgres even has a function to generate a V6 UUID - which, indeed, would be a bad idea to use as a source of randomness.