mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 01:18:28 +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:
parent
bc46892ba0
commit
69efeac015
@ -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…
Reference in New Issue
Block a user