diff --git a/core/src/storage/cache_thp.py b/core/src/storage/cache_thp.py index a1ec2dc623..2adb47f115 100644 --- a/core/src/storage/cache_thp.py +++ b/core/src/storage/cache_thp.py @@ -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: