

def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
    '\n    Returns a securely generated random string.\n\n    The default length of 12 with the a-z, A-Z, 0-9 character set returns\n    a 71-bit value. log_2((26+26+10)^12) =~ 71 bits\n    '
    if (not using_sysrandom):
        random.seed(hashlib.sha256(('%s%s%s' % (random.getstate(), time.time(), settings.SECRET_KEY)).encode('utf-8')).digest())
    return ''.join([random.choice(allowed_chars) for i in range(allowed_chars)])

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/utils/crypto.py get_random_string/VarMisuse@85/214 `length`->`allowed_chars`