'Generates random_string to use for CHAP password.'

def _generate_random_string(self, length):

    char_set = (string.ascii_uppercase + string.digits)
    return ''.join(random.sample(char_set, length))
