From 3e84a76eac19ee01c4ffb8722e1263bea2ecd7fe Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 14 Oct 2018 16:37:46 +0200 Subject: Fix fallback to simply /dev/urandom string. --- localresetpasswd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3