1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-01 10:20:59 +00:00

fixup! feat(core): make starting channel id random [no changelog]

This commit is contained in:
M1nd3r 2024-10-17 11:42:43 +02:00
parent 335b348de2
commit 24d43ab2e5

View File

@ -119,9 +119,9 @@ def initialize() -> None:
for session in _SESSIONS:
session.clear()
import random
from trezor.crypto import random
cid_counter = random.randint(0, 0xFFFE)
cid_counter = random.uniform(0xFFFE)
def get_new_channel(iface: bytes) -> ChannelCache: