From 2c77cab4402ffcfc47367b14e0008258a70fd469 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 a06959aa67407b..078f485880c824 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1792,6 +1792,11 @@ be passed instead of a public key. ### crypto.randomBytes(size[, callback]) - `size` {number} - `callback` {Function}