Skip to content

Commit

Permalink
fix: make access to msCrypto consistent (#393)
Browse files Browse the repository at this point in the history
It doesn't make sense to explicitly use window. only once in the chain.
  • Loading branch information
ctavan committed Mar 2, 2020
1 parent bb2c8e4 commit 8bf2a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rng-browser.js
Expand Up @@ -7,7 +7,7 @@
var getRandomValues =
(typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
(typeof msCrypto != 'undefined' &&
typeof window.msCrypto.getRandomValues == 'function' &&
typeof msCrypto.getRandomValues == 'function' &&
msCrypto.getRandomValues.bind(msCrypto));

var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
Expand Down

0 comments on commit 8bf2a20

Please sign in to comment.