small pixel drawing of a pufferfish pa

head -c is now POSIX compliant

see https://austingroupbugs.net/view.php?id=407

it's still not portable though, because OpenBSD's head doesn't have -c

also, "password" is removed because rand_chars() is used not just for
password generation.
arĉi arcxi@dismail.de
Sat, 06 Jul 2024 01:55:03 +0200
commit

6afa0f8fb07cb2ba63ced6abd73ff11db7532df4

parent

754278b423678004ef1e9b116c146bd23e7ca3a5

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M papa

@@ -110,8 +110,7 @@ # Generate random characters by reading '/dev/urandom' with the

# 'tr' command to translate the random bytes into a # configurable character set. # - # The 'dd' command is then used to read only the desired - # password length, since head -c isn't POSIX compliant. + # The 'dd' command is then used to read only the desired length. # # Regarding usage of '/dev/urandom' instead of '/dev/random'. # See: https://www.2uo.de/myths-about-urandom