Skip to content

Commit

Permalink
fixup: crypto: reduce range of size to int max
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayase-252 committed Apr 5, 2021
1 parent d2745cb commit 6be1377
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/internal/crypto/random.js
Expand Up @@ -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);
Expand Down

0 comments on commit 6be1377

Please sign in to comment.