From 33cc11b6773a732f6f849fd54751af258869ad1d Mon Sep 17 00:00:00 2001 From: tangobravo14 Date: Thu, 18 May 2023 14:01:07 +0300 Subject: [PATCH] otp.sh update --- Files/otp.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Files/otp.sh b/Files/otp.sh index 6721150..226287a 100755 --- a/Files/otp.sh +++ b/Files/otp.sh @@ -14,7 +14,7 @@ pagecount=10 otpath='./otp.txt' -bookserial=`sudo base64 /dev/hwrng | tr -dc '0-9'| head -c 5` +bookserial=`sudo base64 /dev/random | tr -dc '0-9'| head -c 5` @@ -38,8 +38,7 @@ do do - randnum=`sudo base64 /dev/hwrng | tr -dc '0-9'| head -c -$blocksize` + randnum=`sudo base64 /dev/random | tr -dc '0-9'| head -c $blocksize` echo -n $randnum >> $otpath;