Skip to content

Instantly share code, notes, and snippets.



Created Feb 12, 2018
What would you like to do?
random string
import string
import random
def id_generator(size=64, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment