Skip to content

Commit 6be1377

Browse files
committed
fixup: crypto: reduce range of size to int max
1 parent d2745cb commit 6be1377

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/internal/crypto/random.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ function assertSize(size, elementSize, offset, length) {
8989
}
9090

9191
function randomBytes(size, callback) {
92-
const kMaxSize = 2 ** 31 - 1
9392
size = assertSize(size, 1, 0, Infinity);
9493
if (callback !== undefined) {
9594
validateCallback(callback);

0 commit comments

Comments
 (0)