We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 991e519 commit b6d6468Copy full SHA for b6d6468
password_generator/password_generator.py
@@ -55,12 +55,11 @@ def get_password(length: int) -> str:
55
return password
56
57
58
-# shuffle function based on Fisher–Yates shuffle using secrets.choice
+# shuffle function based on Fisher–Yates shuffle using secrets.choice()
59
# as the integer selector
60
def shuffle(password: list):
61
# n used to determine range of loop
62
n = len(password)
63
- # Fisher
64
for x in range(n-1, 0, -1):
65
# set new variable y to random int within needed index
66
y = secrets.choice(range(0, x+1))
0 commit comments