Node.js friends, anything wrong with `require('crypto').randomBytes(32).toString()` for reset tokens & similar?
Probably alright, but I've been taught to always use libsodium - just because it's always the right thing to do
-
-
Ah! You just reminded me that I ended up using Sodium for other things. Was thinking maybe read-random from /dev/urandom.
-
Sodium does randomness right.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.