mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-01 11:58:28 +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():
|
def generate_session_id():
|
||||||
while True:
|
while True:
|
||||||
session_id = random.uniform(0x0fffffff) + 1
|
session_id = random.uniform(0xffffffff) + 1
|
||||||
if session_id not in _opened_sessions:
|
if session_id not in _opened_sessions:
|
||||||
return session_id
|
return session_id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user