node-csprng
node-csprng copied to clipboard
randomBytes accepts Bytes not bits
Maybe i'm not understanding something well enough but:
crypto.randomBytes(bytes) accepts bytes, not bits (as indicated in the readme)
https://nodejs.org/api/crypto.html#cryptorandombytessize-callback