summaryrefslogtreecommitdiff
path: root/localresetpasswd
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-10-14 16:37:46 +0200
committerJonas Smedegaard <dr@jones.dk>2018-10-14 16:37:46 +0200
commit3e84a76eac19ee01c4ffb8722e1263bea2ecd7fe (patch)
tree8ab3f7042085dd31a41ca4d889ce4c63b97aeb34 /localresetpasswd
parent1ffacabd92a4e6a192429be87a845d2aa4c1fef9 (diff)
Fix fallback to simply /dev/urandom string.
Diffstat (limited to 'localresetpasswd')
-rwxr-xr-xlocalresetpasswd2
1 files changed, 1 insertions, 1 deletions
diff --git a/localresetpasswd b/localresetpasswd
index 6cf8f60..a7733f1 100755
--- a/localresetpasswd
+++ b/localresetpasswd
@@ -30,7 +30,7 @@ randompass() {
gpw 1 "$WORD_LENGTH" 2>&- ||
pwgen "$WORD_LENGTH" 1 2>&- ||
tr -d '\000-\057\072-\100\133-\140\173-\377' < /dev/urandom |
- dd bs="$WORD_LENGTH" count=1 2>&-
+ dd bs="$WORD_LENGTH" count=1 status=none
}
u=$1