Red Hat Bugzilla – Bug 1462557
"pwgen -n 1" doesn't work as advertised
Last modified: 2017-08-15 04:23:36 EDT
Description of problem:
According to the man page, "pwgen -n 1" should generate 1-digit passwords. Instead, all of them are lower-case letters. I wanted to be able to use this to generate a sequence of random digits (such as a PIN), since pwgen doesn't have a numbers-only option.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. pwgen -n 1
Collection of 1-character lower-case letter passwords
Collection of 1-digit passwords
The -n option appears to work properly if the password length is greater than 1.
Same behavior in pwgen-2.07-4.fc26.x86_64 in Rawhide.
Just reported at https://github.com/jbernard/pwgen/issues/2 (but not sure if that's the right upstream bug tracker).
The above is the wrong bug tracker. The correct one is apparently https://sourceforge.net/projects/pwgen/ (which is owned by the original developer), but there's apparently no way to file a ticket there. It says "To create a new ticket, you must be authorized by the project admin." but there's no way to even request that.
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.