1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-02 13:17:53 +00:00

13 lines
260 B
Python

"""Helpers to generate uuids."""
from random import getrandbits
def random_uuid_hex() -> str:
"""Generate a random UUID hex.
This uuid should not be used for cryptographically secure
operations.
"""
return "%032x" % getrandbits(32 * 4)