diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/uuid.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/uuid.py b/server/lib/uuid.py index 9558f21..e77e3a8 100644 --- a/server/lib/uuid.py +++ b/server/lib/uuid.py @@ -1,4 +1,4 @@ -from uuid import UUID +from uuid import UUID, uuid4 def validate(uuid_to_test, version=4): try: @@ -7,3 +7,6 @@ def validate(uuid_to_test, version=4): return False return str(uuid_obj) == uuid_to_test + +def gen(): + return str(uuid4()) |