diff --git a/index.html b/index.html index a5c5fa4..79e74f1 100644 --- a/index.html +++ b/index.html @@ -90,6 +90,7 @@
+
diff --git a/js/coin.js b/js/coin.js index a909a90..1bf16e4 100644 --- a/js/coin.js +++ b/js/coin.js @@ -45,7 +45,15 @@ /* generate crypto secure random numbers (should exist on most browsers) */ coinjs.randomBytesSafe = function(count){ var cry = window.crypto || window.msCrypto; - if (!cry) return ''; + if (!cry) { + /* Display warning message for 30 seconds */ + $("#cryptoRandomStatus").removeClass("hidden"); + setTimeout(function(){ + $("#cryptoRandomStatus").addClass("hidden"); + }, 30000); + + return ''; + } var buf = new Uint8Array(count); cry.getRandomValues(buf); return Crypto.util.bytesToHex(buf);