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:
parent
335b348de2
commit
24d43ab2e5
@ -119,9 +119,9 @@ def initialize() -> None:
|
|||||||
for session in _SESSIONS:
|
for session in _SESSIONS:
|
||||||
session.clear()
|
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:
|
def get_new_channel(iface: bytes) -> ChannelCache:
|
||||||
|
Loading…
Reference in New Issue
Block a user