crypto.randomBytes documentation needs improvement #3081
Labels
crypto
Issues and PRs related to the crypto subsystem.
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
The
crypto.randomBytes
documentation is quite confusing on whether or not the function throws on a lack of entropy. The code shows that it does, but the note below says that it does not. I'm currently under the impression that it does not throw on low entropy, so this needs to be fixed. Here is how it looks now:Refs to: #3073 (comment) and following discussion, e5e5980, f68a116, and
RAND_bytes()
docs. Also #813.The text was updated successfully, but these errors were encountered: