mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
parent
5c72e68b7e
commit
4acf8e0667
@ -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