mirror of
https://salsa.debian.org/gnuk-team/gnuk/gnuk.git
synced 2024-09-20 02:40:08 +00:00
Add count for tool/gnuk_get_random.py.
This commit is contained in:
parent
076d727061
commit
126283b1ac
@ -5,11 +5,17 @@ from binascii import hexlify
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
count = 0
|
||||
gnuk = get_gnuk_device()
|
||||
gnuk.cmd_select_openpgp()
|
||||
looping = (len(sys.argv) > 1)
|
||||
while True:
|
||||
try:
|
||||
challenge = gnuk.cmd_get_challenge().tostring()
|
||||
except Exception as e:
|
||||
print(count)
|
||||
raise e
|
||||
print(hexlify(challenge))
|
||||
count = count + 1
|
||||
if not looping:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user