mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
apps.common.storage: fix device_id generator
This commit is contained in:
parent
373487af1f
commit
72a41182c2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user