We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d037bd commit 107141aCopy full SHA for 107141a
test/test.js
@@ -87,7 +87,7 @@ tape('hex encoding', function (t) {
87
tape('call digest for more than MAX_UINT32 bits of data', function (t) {
88
var _hash = crypto.createHash('sha1')
89
var hash = new Sha1()
90
- var bigData = Buffer.alloc((Math.pow(2, 32) + Math.pow(2,31))/ 8)
+ var bigData = Buffer.alloc(0x1ffffffff / 8)
91
92
hash.update(bigData)
93
_hash.update(bigData)
0 commit comments