More random to secrets
This commit is contained in:
parent
b15facb6e4
commit
19e87a7156
|
@ -1,4 +1,3 @@
|
|||
import random
|
||||
import secrets
|
||||
import string
|
||||
import time
|
||||
|
@ -17,7 +16,7 @@ with open(WORDS_FILE_PATH) as f:
|
|||
|
||||
|
||||
def random_word():
|
||||
return random.choice(_words)
|
||||
return secrets.choice(_words)
|
||||
|
||||
|
||||
def word_exist(word):
|
||||
|
|
Loading…
Reference in New Issue