1
0
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:
Jan Pochyla 2016-09-25 15:36:50 +02:00 committed by Pavol Rusnak
parent 64746d01b4
commit 02b13af526
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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