From b980e90a50685b629b3dbf0619024c7fc4da95bc Mon Sep 17 00:00:00 2001 From: Arkerone Date: Wed, 7 Apr 2021 10:47:31 +0200 Subject: [PATCH] lib: fix typo in lib/internal/crypto/random.js change "bytesLength" to "byteLength" --- lib/internal/crypto/random.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/crypto/random.js b/lib/internal/crypto/random.js index 88b535a357c4fa..f3fdf5f2f80104 100644 --- a/lib/internal/crypto/random.js +++ b/lib/internal/crypto/random.js @@ -155,7 +155,7 @@ function randomFill(buf, offset, size, callback) { if (typeof offset === 'function') { callback = offset; offset = 0; - size = buf.bytesLength; + size = buf.byteLength; } else if (typeof size === 'function') { callback = size; size = buf.byteLength - offset;