diff --git a/bitaddress.org.html b/bitaddress.org.html index fdc79c8..9304629 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -1508,7 +1508,7 @@ if (typeof Crypto == "undefined" || !Crypto.util) { // Pool size must be a multiple of 4 and greater than 32. // An array of bytes the size of the pool will be passed to init() - sr.poolSize = 256; + sr.poolSize = 512; // --- object methods --- @@ -1620,12 +1620,12 @@ if (typeof Crypto == "undefined" || !Crypto.util) { sr.pool = new Array(); sr.pptr = 0; var t; - if (window.crypto && window.crypto.getRandomValues) { + if (window.crypto && window.crypto.getRandomValues && window.Uint8Array) { try { // Use webcrypto if available - var ua = new Uint8Array(32); + var ua = new Uint8Array(sr.poolSize); window.crypto.getRandomValues(ua); - for (t = 0; t < 32; ++t) + for (t = 0; t < sr.poolSize; ++t) sr.pool[sr.pptr++] = ua[t]; } catch (e) { alert(e); } } @@ -5789,6 +5789,9 @@ body { font-family: Arial; } #btcaddress, #btcprivwif, #detailaddress, #detailaddresscomp, #detailprivwif, #detailprivwifcomp { font-family: monospace; font-size: 1.25em; } #seedpoolarea { display: none; } +#seedpooldisplay { font-family: monospace; font-size: 0.75em; width: 600px; padding: 10px; word-wrap: break-word; } +#generate { font-family: monospace; font-size: 1.25em; height: 275px; text-align: left; position: relative; padding: 5px; border: 2px solid green; } +#generate span { padding: 5px 5px 0 5px; } #keyarea { height: 250px; } #keyarea .pubaddress { float: none; display: block; padding: 0; height: auto; } #keyarea .label { text-decoration: none; } @@ -5804,8 +5807,6 @@ body { font-family: Arial; } #main { position: relative; text-align: center; margin: 0px auto; width: 1005px; } #logo { width: 578px; height: 80px; } -#generate { font-family: monospace; font-size: 1.25em; height: 158px; text-align: left; position: relative; padding: 5px; border: 2px solid green; } -#generate span { padding: 5px 5px 0 5px; } #paperarea { min-height: 120px; display: none; } #paperarea .keyarea { border: 2px solid green; border-top: 0; } @@ -5958,7 +5959,7 @@ body { font-family: Arial; } } - +
@@ -5971,7 +5972,7 @@ body { font-family: Arial; }
Open Source JavaScript Client-Side Bitcoin Wallet Generator
-
+