From 3230a7a8feb6c15d6b118bd0957b5c5334d88e90 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 8 Jul 2021 02:21:11 +0200 Subject: [PATCH] diceware +4 digit pseudo --- sms/GUILDE.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sms/GUILDE.sh b/sms/GUILDE.sh index 8b22dc3..4389a9d 100755 --- a/sms/GUILDE.sh +++ b/sms/GUILDE.sh @@ -50,10 +50,10 @@ if [[ ! $xzuid ]]; then ######################################################################## ## MAKE UNIQ xzuid - xzuid=$($MY_PATH/diceware.sh 1 | xargs)${RANDOM:0:5} + xzuid=$($MY_PATH/diceware.sh 1 | xargs)${RANDOM:0:4} while [[ "$(cat /home/${YOU}/.zen/SMS/PHONE/*/xzuid.txt 2>/dev/null)" == "${xzuid}" ]] do - xzuid=$($MY_PATH/diceware.sh 1 | xargs)${RANDOM:0:5} + xzuid=$($MY_PATH/diceware.sh 1 | xargs)${RANDOM:0:4} done echo "$xzuid" > /home/${YOU}/.zen/SMS/PHONE/${phonehash}/xzuid.txt echo "=> NOUVEAU $xzuid WELCOME <="