From 0da22bd79fe6ff9e94823ed716c4b1546e46e4d8 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 --- doc/api/crypto.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index b0e1d19963bf58..4c277c628aa47d 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}