From d70e6dc850a953e59e9f24abc59e375d1696461c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 10 Dec 2017 21:12:21 +0100 Subject: [PATCH] doc: note that randomBytes throws when passed null Fixes: https://github.com/nodejs/node/issues/16778 PR-URL: https://github.com/nodejs/node/pull/17594 Fixes: https://github.com/nodejs/node/issues/16778 Reviewed-By: Anatoli Papirovski Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Daniel Bevenius Reviewed-By: Jon Moss --- doc/api/crypto.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 9d2eeb8b00c5bb..b4060127ee450d 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1782,6 +1782,11 @@ be passed instead of a public key. ### crypto.randomBytes(size[, callback]) - `size` {number} - `callback` {Function}