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 c210a69 commit 963b12bCopy full SHA for 963b12b
lib/parser/utils.js
@@ -25,6 +25,11 @@ if (typeof window !== 'undefined' && window.crypto && window.crypto.getRandomVal
25
} catch (e) {
26
// keep the fallback
27
}
28
+
29
+ // NOTE: in transpiled cases the above require might return null/undefined
30
+ if (randomBytes == null) {
31
+ randomBytes = insecureRandomBytes;
32
+ }
33
34
35
module.exports = {
0 commit comments