Skip to content

Commit 504ff17

Browse files
committed
ensure a helpful error message in browsers without randomValues
1 parent 9bf8520 commit 504ff17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rng.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
try { return require(r) } catch (_) { }
55
}
66
_crypto = (
7-
g.crypto || g.msCrypto || foolBrowserify('crypto')
7+
g.crypto || g.msCrypto || foolBrowserify('crypto') || {}
88
)
99
module.exports = function(size) {
1010
// Modern Browsers

0 commit comments

Comments
 (0)