Skip to content

Comment on Put Callback Logic Into Callback Objects [Rails]

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.