We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d9c3cc commit d0cb9cbCopy full SHA for d0cb9cb
lib/internal/crypto/random.js
@@ -11,7 +11,7 @@ const {
11
const { isArrayBufferView } = require('internal/util/types');
12
13
const { kMaxLength } = require('buffer');
14
-const kMaxUint32 = Math.pow(2, 32) - 1;
+const kMaxUint32 = 2 ** 32 - 1;
15
const kMaxPossibleLength = Math.min(kMaxLength, kMaxUint32);
16
17
function assertOffset(offset, elementSize, length) {
0 commit comments