diff --git a/src/enapter/http/api/devices/client.py b/src/enapter/http/api/devices/client.py index d097e03..a9519b3 100644 --- a/src/enapter/http/api/devices/client.py +++ b/src/enapter/http/api/devices/client.py @@ -1,4 +1,4 @@ -import random +import secrets import time from typing import AsyncGenerator @@ -161,4 +161,4 @@ def random_device_name(device_type: DeviceType) -> str: def random_hardware_id() -> str: - return "V" + "".join(f"{b:02X}" for b in random.randbytes(16)) + return "V" + secrets.token_hex(16).upper()