aboutsummaryrefslogtreecommitdiff
path: root/bip39-standalone.html
diff options
context:
space:
mode:
Diffstat (limited to 'bip39-standalone.html')
-rw-r--r--bip39-standalone.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 4bad422..0da2443 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -18467,7 +18467,12 @@ window.Entropy = new (function() {
18467 } 18467 }
18468 // Work out the total number of bits for this many decks 18468 // Work out the total number of bits for this many decks
18469 // See http://crypto.stackexchange.com/q/41886 18469 // See http://crypto.stackexchange.com/q/41886
18470 var gainedBits = Math.log2(factorial(52 * numberOfDecks)); 18470 var gainedBits = 0;
18471 // Equivalent of Math.log2(factorial(52*numberOfDecks))
18472 // which becomes infinity for numberOfDecks > 4
18473 for (var i=1; i<=52*numberOfDecks; i++) {
18474 gainedBits = gainedBits + Math.log2(i);
18475 }
18471 var lostBits = 52 * Math.log2(factorial(numberOfDecks)); 18476 var lostBits = 52 * Math.log2(factorial(numberOfDecks));
18472 var maxBits = gainedBits - lostBits; 18477 var maxBits = gainedBits - lostBits;
18473 // Convert the drawn cards to a binary representation. 18478 // Convert the drawn cards to a binary representation.