We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a99e2 commit 0dc3088Copy full SHA for 0dc3088
src/sagemaker/utils.py
@@ -83,7 +83,7 @@ def name_from_base(base, max_length=63, short=False):
83
84
def unique_name_from_base(base, max_length=63):
85
"""Placeholder Docstring"""
86
- random.seed(int(uuid.uuid4())) #using uuid to randomize, otherwise system timestamp is used.
+ random.seed(int(uuid.uuid4())) # using uuid to randomize, otherwise system timestamp is used.
87
unique = "%04x" % random.randrange(16**4) # 4-digit hex
88
ts = str(int(time.time()))
89
available_length = max_length - 2 - len(ts) - len(unique)
0 commit comments