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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
  • 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.