diff --git a/src/apps/common/storage.py b/src/apps/common/storage.py index c64d1b1209..ab2025b87c 100644 --- a/src/apps/common/storage.py +++ b/src/apps/common/storage.py @@ -108,4 +108,4 @@ def _set(key: int, val): def _new_device_id() -> str: from ubinascii import hexlify from trezor.crypto import random - return str(hexlify(random.bytes(16))) + return hexlify(random.bytes(12)).decode('ascii').upper()