Closed kouk closed 9 years ago
In the entropy validator you divide the password entropy by the ideal entropy based on the string length. However in it's method ideal_entropy you take math.log(1/length), which for a length of 1 is equal to zero. This leads to division by zero.
ideal_entropy
math.log(1/length)
Merged. Thx.
In the entropy validator you divide the password entropy by the ideal entropy based on the string length. However in it's method
ideal_entropy
you takemath.log(1/length)
, which for a length of 1 is equal to zero. This leads to division by zero.