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'
|
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
|
do
|
||||||
|
|
||||||
randnum=`sudo base64 /dev/hwrng | tr -dc '0-9'| head -c
|
randnum=`sudo base64 /dev/random | tr -dc '0-9'| head -c $blocksize`
|
||||||
$blocksize`
|
|
||||||
|
|
||||||
echo -n $randnum >> $otpath;
|
echo -n $randnum >> $otpath;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user