def random_label():
    label = ''
    for i in range(random.randint(5, 30)):
        label += string.letters[random.randint(0, len(string.letters) - 1)]
    return label
Utility function to generate a random *valid* label.
dataset/ETHPy150Open mozilla/inventory/mozdns/tests/utils.py/random_label