mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
otp.sh update
This commit is contained in:
+2
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user