Improve performance of generating non-cryptographically secure uuids (#41314)

This commit is contained in:
J. Nick Koston 2020-10-07 09:37:01 -05:00 committed by GitHub
parent 451f27bba1
commit 8d5c124deb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 17 deletions

View file

@ -139,7 +139,7 @@ class ConfigEntry:
) -> None:
"""Initialize a config entry."""
# Unique id of the config entry
self.entry_id = entry_id or uuid_util.uuid_v1mc_hex()
self.entry_id = entry_id or uuid_util.random_uuid_hex()
# Version of the configuration.
self.version = version