Skip to content

Commit 2c77cab

Browse files
tniessenBridgeAR
authored andcommitted
doc: note that randomBytes throws when passed null
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]>
1 parent 031d01b commit 2c77cab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/crypto.md

+5
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,11 @@ be passed instead of a public key.
17921792
### crypto.randomBytes(size[, callback])
17931793
<!-- YAML
17941794
added: v0.5.8
1795+
changes:
1796+
- version: v9.0.0
1797+
pr-url: https://github.com/nodejs/node/pull/16454
1798+
description: Passing `null` as the `callback` argument now throws
1799+
`ERR_INVALID_CALLBACK`.
17951800
-->
17961801
- `size` {number}
17971802
- `callback` {Function}

0 commit comments

Comments
 (0)