mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 17:09:44 +00:00
fix session id range
This commit is contained in:
parent
64746d01b4
commit
02b13af526
@ -19,7 +19,7 @@ _opened_sessions = set() # session ids
|
||||
|
||||
def generate_session_id():
|
||||
while True:
|
||||
session_id = random.uniform(0x0fffffff) + 1
|
||||
session_id = random.uniform(0xffffffff) + 1
|
||||
if session_id not in _opened_sessions:
|
||||
return session_id
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user