Skip to content

Commit

Permalink
doc: note that randomBytes throws when passed null
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Dec 10, 2017
1 parent b7ff3c0 commit 0da22bd
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 @@ -1792,6 +1792,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 0da22bd

Please sign in to comment.