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