1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

apps.common.storage: fix device_id generator

This commit is contained in:
Pavol Rusnak 2016-11-12 15:03:45 +01:00
parent 373487af1f
commit 72a41182c2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -108,4 +108,4 @@ def _set(key: int, val):
def _new_device_id() -> str: def _new_device_id() -> str:
from ubinascii import hexlify from ubinascii import hexlify
from trezor.crypto import random from trezor.crypto import random
return str(hexlify(random.bytes(16))) return hexlify(random.bytes(12)).decode('ascii').upper()