Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bossOfCode authored Aug 23, 2024
2 parents 3f58d1e + ea995fb commit b8a46bf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ def print_in_os(argument):
os.system(f"{argument}")

if VERSION in versions or namespace in namespaces:
if VERSION == 1:
OUTPUT = str(uuid.uuid1())
else:
if VERSION == 3:
OUTPUT = str(uuid.uuid3(str("NAMESPACES_" + namespace), name))
else:
if VERSION == 4:
OUTPUT = str(uuid.uuid4())
else:
if VERSION == 5:
OUTPUT = str(uuid.uuid5(str("NAMESPACES_" + namespace), name))
OUTPUT = str(uuid.uuid{VERSION}())
else:
if namespace in namespaces:
sys.exit(f"ERROR: namespace cannot be {namespace}; must be either DNS, URL, OID, or X500.")
Expand Down

0 comments on commit b8a46bf

Please sign in to comment.