1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

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.
This commit is contained in:
Andrew Kozlik 2019-02-12 18:21:23 +01:00 committed by Pavol Rusnak
parent bc46892ba0
commit 69efeac015
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -11,7 +11,7 @@ PINKEY = 0x00
def random_entry(): def random_entry():
while True: 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: if appid != PINAPP or key != PINKEY:
break break
return appid, key return appid, key