diff --git a/bitaddress.org.html b/bitaddress.org.html
index 58fce80..fdc79c8 100644
--- a/bitaddress.org.html
+++ b/bitaddress.org.html
@@ -1634,7 +1634,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 2637647..3e5c3ee 100644
--- a/src/securerandom.js
+++ b/src/securerandom.js
@@ -147,7 +147,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 = "";