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
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
pa
→
pa
@@ -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