Skip to content

Commit

Permalink
Fix bug with length of generated passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
llamalump committed Dec 21, 2020
1 parent 556354f commit 719d344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def gen_pass(length, use_spaces, wordlist):
"""
phrase = ""
last_word = False
for i in range (0, length -1):
for i in range (0, length):
if i == length - 1:
last_word = True
index = secrets.randbelow(len(wordlist) - 1)
Expand Down

0 comments on commit 719d344

Please sign in to comment.