1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-08 15:05:26 +02:00

Use randomBytes intead of pseudoRandomBytes

This commit is contained in:
georgyb 2019-02-15 17:43:40 +03:00
parent 0a1f24066f
commit ef81363ad7

View file

@ -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);
}