Skip to content

Commit

Permalink
half the time
Browse files Browse the repository at this point in the history
  • Loading branch information
colinta committed Nov 18, 2011
1 parent 62f910f commit 7b9c5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
$('#generate .password').text(sentence.password);

var entropy = sentence.entropy.toFixed(1)
, possibles = Math.pow(2, sentence.entropy)
, possibles = Math.pow(2, sentence.entropy - 1) // on average, only half the possibilities will be needed. so -1 exponent
, small_guesses_per_year = 1000 * 3600*24*365
, large_guesses_per_year = 100000000 * 3600*24*365;
$('#generate .entropy').html(entropy + " bits of entropy.<br />" +
Expand Down

0 comments on commit 7b9c5c2

Please sign in to comment.