We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greetings,
I need to be able to generate only numeric passwords due to some silly requirements, but calling generate() after constructing the object like:
my pass = App::Genpass->new(lowercase => [], uppercase => [], length => $length); return $pass->generate();
seems to cause a loop condition. According to short debugger runs, the generate() code hangs here:
while ( ! any { $_ eq $char } @{ $self->$char_type } ) { $char = $chars[ int rand @chars]; }
Am I approaching the numeric password generation right?
Edit: verify => 0 seems to be a workaround
The text was updated successfully, but these errors were encountered:
I'll fix that asap. Thanks for reporting!
Sorry, something went wrong.
Fixed in 2.34, just released.
Thank you. :)
No branches or pull requests
Greetings,
I need to be able to generate only numeric passwords due to some silly requirements, but calling generate() after constructing the object like:
my pass = App::Genpass->new(lowercase => [], uppercase => [], length => $length);
return $pass->generate();
seems to cause a loop condition. According to short debugger runs, the generate() code hangs here:
verify $char_type
while ( ! any { $_ eq $char } @{ $self->$char_type } ) {
$char = $chars[ int rand @chars];
}
Am I approaching the numeric password generation right?
Edit: verify => 0 seems to be a workaround
The text was updated successfully, but these errors were encountered: