We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815daa3 commit 1fef18bCopy full SHA for 1fef18b
lib/rng-browser.js
@@ -3,8 +3,8 @@
3
// and inconsistent support for the `crypto` API. We do the best we can via
4
// feature-detection
5
6
-var getRandomValues = typeof(crypto) != 'undefined' && crypto.getRandomValues;
7
-
+var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues) ||
+ (typeof(msCrypto) != 'undefined' && msCrypto.getRandomValues);
8
if (getRandomValues) {
9
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
10
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
0 commit comments