diff --git a/lib/internal/crypto/random.js b/lib/internal/crypto/random.js index 1479ff7cfdf277..83e7fa01a9900a 100644 --- a/lib/internal/crypto/random.js +++ b/lib/internal/crypto/random.js @@ -89,7 +89,6 @@ function assertSize(size, elementSize, offset, length) { } function randomBytes(size, callback) { - const kMaxSize = 2 ** 31 - 1 size = assertSize(size, 1, 0, Infinity); if (callback !== undefined) { validateCallback(callback);