From 02b13af5260dc8716f46114302c7e7e838e8355e Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Sun, 25 Sep 2016 15:36:50 +0200 Subject: [PATCH] fix session id range --- src/trezor/wire/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trezor/wire/__init__.py b/src/trezor/wire/__init__.py index ed9d57544a..61d5270ff9 100644 --- a/src/trezor/wire/__init__.py +++ b/src/trezor/wire/__init__.py @@ -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