From ef81363ad7e38a2cc10d7e038d7119c63349b043 Mon Sep 17 00:00:00 2001 From: georgyb Date: Fri, 15 Feb 2019 17:43:40 +0300 Subject: [PATCH] Use randomBytes intead of pseudoRandomBytes --- src/utils/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/crypto.js b/src/utils/crypto.js index ffb127b..b14ce7e 100644 --- a/src/utils/crypto.js +++ b/src/utils/crypto.js @@ -17,7 +17,7 @@ function binaryMD5(stringToHash) { */ function random16() { return new Promise((resolve, reject) => { - crypto.pseudoRandomBytes(16, (err, raw) => { + crypto.randomBytes(16, (err, raw) => { if (err) { reject(err); }