gen_random_uuid() produces a v4 UUID.
Taking the first 5 bytes of a v6 UUID (time) and last 5 (node) would be a bad random day.
Taking the first 5 bytes of a v6 UUID (time) and last 5 (node) would be a bad random day.
> 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.
What is happening right now? Why is your comment marked four hours ago?
What is happening right now?
Or take the red pill, pull back the curtains of reality, and see the machinery behind: https://news.ycombinator.com/item?id=41197775
Glitch in the matrix.