tests: Limit the APP values in test_trezor.config to 1, ..., 63

to account for the fact that the top two bits are being used
as permissions flags.
pull/25/head
Andrew Kozlik 5 years ago committed by Pavol Rusnak
parent bc46892ba0
commit 69efeac015
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -11,7 +11,7 @@ PINKEY = 0x00
def random_entry():
while True:
appid, key = 1 + random.uniform(127), random.uniform(256)
appid, key = 1 + random.uniform(63), random.uniform(256)
if appid != PINAPP or key != PINKEY:
break
return appid, key

Loading…
Cancel
Save