Skip to content

Commit b6d6468

Browse files
authored
Update password_generator.py
1 parent 991e519 commit b6d6468

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

password_generator/password_generator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@ def get_password(length: int) -> str:
5555
return password
5656

5757

58-
# shuffle function based on Fisher–Yates shuffle using secrets.choice
58+
# shuffle function based on Fisher–Yates shuffle using secrets.choice()
5959
# as the integer selector
6060
def shuffle(password: list):
6161
# n used to determine range of loop
6262
n = len(password)
63-
# Fisher
6463
for x in range(n-1, 0, -1):
6564
# set new variable y to random int within needed index
6665
y = secrets.choice(range(0, x+1))

0 commit comments

Comments
 (0)