use shorter words when generating emails

This commit is contained in:
Son NK 2019-07-04 10:11:32 +02:00 committed by Son NK
parent 1703f4b5f6
commit 1670b37858
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ with open(WORDS_FILE_PATH) as f:
def random_words():
"""Generate a random words. Used to generate user-facing string, for ex email addresses"""
nb_words = random.randint(3, 5)
nb_words = random.randint(2, 3)
return "_".join([random.choice(_words) for i in range(nb_words)])