Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They're not randomly generated. They're generated using a Feistel cipher. [1]

He's ensuring the uniqueness by indexing from 0, and applying the cipher to come up with a more "random" looking UUID.

[1] https://eieio.games/blog/writing-down-every-uuid/#toc:feiste...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: