in ml-tools-python/awspyml.py [0:0]
def _new(cls, prefix=None):
if prefix:
out = prefix + '-'
else:
out = ''
for i in range(11):
# 62^11 -> 65 random bits, which is sufficient to avoid collisions
# creating 1 entity per second for 200+ years.
out += cls.chars[random.randint(0, len(cls.chars) - 1)]
return out