mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
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
Block a user