mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 18:01:38 +00:00
parent
081fde93e3
commit
bb196ad851
@ -306,8 +306,7 @@ def random_words(lang='en', wordlist='combined', nwords=5, bits_per_word=12,
|
||||
"There aren't enough words in the wordlist to provide %d bits of "
|
||||
"entropy per word." % bits_per_word
|
||||
)
|
||||
selected = [random.choice(choices) for i in range(nwords)]
|
||||
return ' '.join(selected)
|
||||
return ' '.join([random.choice(choices) for i in range(nwords)])
|
||||
|
||||
|
||||
def random_ascii_words(lang='en', wordlist='combined', nwords=5,
|
||||
|
Loading…
Reference in New Issue
Block a user