def gen_alphanumeric(length=10):

    # Validate length argument
    _is_positive_int(length)

    random.seed()
    output_string = u''.join(
        random.choice(
            string.ascii_letters + string.digits
        ) for i in range(length))

    return _make_unicode(output_string)
Returns a random string made up of alpha and numeric characters.
dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/gen_alphanumeric