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;