Skip to content

Commit

Permalink
doc: note that randomBytes throws when passed null
Browse files Browse the repository at this point in the history
Fixes: #16778

PR-URL: #17594
Fixes: #16778
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
  • Loading branch information
tniessen authored and MylesBorins committed Jan 8, 2018
1 parent da44821 commit d70e6dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,11 @@ be passed instead of a public key.
### crypto.randomBytes(size[, callback])
<!-- YAML
added: v0.5.8
changes:
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/16454
description: Passing `null` as the `callback` argument now throws
`ERR_INVALID_CALLBACK`.
-->
- `size` {number}
- `callback` {Function}
Expand Down

0 comments on commit d70e6dc

Please sign in to comment.