use 2 random words when creating random alias

This commit is contained in:
Son NK 2020-11-10 18:52:31 +01:00
parent 4e16eb7403
commit 5570300699
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ def word_exist(word):
def random_words():
"""Generate a random words. Used to generate user-facing string, for ex email addresses"""
nb_words = random.randint(2, 3)
# nb_words = random.randint(2, 3)
nb_words = 2
return "_".join([random.choice(_words) for i in range(nb_words)])