diff --git a/bitaddress.org.html b/bitaddress.org.html
index 59cd96b..5374bee 100644
--- a/bitaddress.org.html
+++ b/bitaddress.org.html
@@ -1628,7 +1628,7 @@ if (typeof Crypto == "undefined" || !Crypto.util) {
sr.pool[sr.pptr++] = t >>> 8;
sr.pool[sr.pptr++] = t & 255;
}
- sr.pptr = 0;
+ sr.pptr = Math.floor(sr.poolSize * Math.random());
sr.seedTime();
// entropy
var entropyStr = "";
diff --git a/src/securerandom.js b/src/securerandom.js
index 532e3b6..4913b71 100644
--- a/src/securerandom.js
+++ b/src/securerandom.js
@@ -141,7 +141,7 @@
sr.pool[sr.pptr++] = t >>> 8;
sr.pool[sr.pptr++] = t & 255;
}
- sr.pptr = 0;
+ sr.pptr = Math.floor(sr.poolSize * Math.random());
sr.seedTime();
// entropy
var entropyStr = "";