import string
import random


def _random_string(characters=string.ascii_uppercase + string.ascii_lowercase + string.digits, size=32):
        """Generates a random string from all upper, lower, and digits"""
        return ''.join(random.choice(characters) for x in range(size))