sparse-intern-71089
02/21/2023, 11:57 PMbillowy-army-68599
gorgeous-minister-41131
02/22/2023, 12:30 AMgorgeous-minister-41131
02/22/2023, 12:31 AMgorgeous-minister-41131
02/22/2023, 12:34 AMJob
resource, so I need an alternative that can provide me with a unique-yet-consistent value for each run)
I think I would be able to just use a random generated slug just fine, just wasn't sure..
def random_id(length: int = 4) -> str:
"""
Generates a random n-length character hexidecimal ID that can be used for
naming, annotating, labeling or tagging a deployment, namespace etc.
"""
charsets: str = string.ascii_lowercase + string.digits
return "".join(random.choice(charsets) for _ in range(length))
gorgeous-minister-41131
02/22/2023, 12:34 AM