@@ -1,4 +1,4 @@
-import subprocess
+import uuid
def uuid_str_to_int(uuid_str: str) -> int:
@@ -65,6 +65,4 @@ def uuid_bytes_to_str(uuid_bytes: bytes) -> str:
def generate_uuid4_bytes() -> bytes:
- return subprocess.run(
- ["uuid", "-v", "4", "-F", "BIN"], stdout=subprocess.PIPE, check=True
- ).stdout.strip()
+ return uuid.uuid4().bytes