Hacker News new | ask | show | jobs
by bhousel 5212 days ago
I'm kind of curious why you use SecureRandom.hex and then check for uniqueness, rather than just using SecureRandom.uuid?

Edit: Nevermind, I realize now that SecureRandom's uuid isn't really a uuid, in that sense. It's just random.