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 8a39ce0 commit 99609d2Copy full SHA for 99609d2
browser.js
@@ -23,7 +23,7 @@ if (crypto && crypto.getRandomValues) {
23
24
function randomBytes (size, cb) {
25
// phantomjs needs to throw
26
- if (size > MAX_UINT32) throw new Error('requested too many random bytes')
+ if (size > MAX_UINT32) throw new RangeError('requested too many random bytes')
27
28
var bytes = Buffer.allocUnsafe(size)
29
0 commit comments