Files
browserPGP/prngCheck.js
unknown f68e90e6b2 a
2018-11-14 16:37:46 +00:00

5 lines
453 B
JavaScript

function isGoodPrngAvailable(){return!("undefined"==typeof window||!window.crypto||!window.crypto.getRandomValues)||"undefined"!=typeof window&&"object"==typeof window.msCrypto&&"function"==typeof window.msCrypto.getRandomValues}
if (!isGoodPrngAvailable()) {
(alert("A browser that has a Pseudo Random Number Generator is required to use browserPGP. Please update your browser."),window.location="https://browserpgp.github.io/compatibility.html");
}