aboutsummaryrefslogtreecommitdiffstats
path: root/get-password
diff options
context:
space:
mode:
Diffstat (limited to 'get-password')
-rwxr-xr-xget-password2
1 files changed, 1 insertions, 1 deletions
diff --git a/get-password b/get-password
index 27cca4d..ee6788e 100755
--- a/get-password
+++ b/get-password
@@ -16,6 +16,6 @@ else
length=8
fi
-perl -e "print map { (a..z,A..Z,0..9)[rand 62] } 0..$length"
+perl -e "@c = (a..z,A..Z,0..9); print map { @c[rand @c] } 0..$length"
# get-password ends here