bbusschots / hsxkpasswd

A Perl module and terminal command for generating secure memorable passwords inspired by the fabulous XKCD web comic and Steve Gibson's Password Hay Stacks. This is the library that powers www.xkpasswd.net
http://www.bartb.ie/xkpasswd
BSD 2-Clause "Simplified" License
278 stars 48 forks source link

Intermittent Problem with Random Numbers #14

Closed bbusschots-mu closed 8 years ago

bbusschots-mu commented 9 years ago

This doesn't happen often, but every now and then it does:

ERROR - Crypt::HSXKPasswd::password(): Failed to generate password with the following error: ERROR - Crypt::HSXKPasswd::_increment_random_cache(): random function returned and invalid value (6.1053317040205e-05) at /usr/local/bin/hsxkpasswd line 464. at /usr/local/bin/hsxkpasswd line 464.

bbusschots commented 8 years ago

Resolved by commit https://github.com/bbusschots/hsxkpasswd/commit/aac07ee5b59a13be48f72e8988a49d969df0cb7c

lukeallister commented 8 years ago

I am still getting this bug. I ran it from both the cpan Crypt and installing from source. Still get the "invalid value" with small numbers.