node-csprng icon indicating copy to clipboard operation
node-csprng copied to clipboard

randomBytes accepts Bytes not bits

Open fabioespinosa opened this issue 3 years ago • 0 comments

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

fabioespinosa avatar Feb 22 '22 12:02 fabioespinosa