luniebox/application/util.py

8 lines
196 B
Python
Raw Normal View History

2022-02-06 10:19:03 +01:00
import random
import string
def randomString(len):
return ''.join(random.SystemRandom().choice(
string.ascii_lowercase + string.ascii_uppercase + string.digits) for _ in range(len))