Skip to content

Commit d70e6dc

Browse files
tniessenMylesBorins
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 da44821 commit d70e6dc

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
@@ -1782,6 +1782,11 @@ be passed instead of a public key.
17821782
### crypto.randomBytes(size[, callback])
17831783
<!-- YAML
17841784
added: v0.5.8
1785+
changes:
1786+
- version: v9.0.0
1787+
pr-url: https://github.com/nodejs/node/pull/16454
1788+
description: Passing `null` as the `callback` argument now throws
1789+
`ERR_INVALID_CALLBACK`.
17851790
-->
17861791
- `size` {number}
17871792
- `callback` {Function}

0 commit comments

Comments
 (0)