aboutsummaryrefslogtreecommitdiffstats
path: root/get-password
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-02-15 15:24:13 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-02-15 15:24:13 +0000
commitba90dd5900e9d66b606f6f44ff559fdd34ab0fc0 (patch)
tree077ecb777b6a9fed8919c5710a881fdc3bc05beb /get-password
parentb6be6092d4c8dc13ba019da78d082965a64bd925 (diff)
downloadrpm-helper-ba90dd5900e9d66b606f6f44ff559fdd34ab0fc0.tar
rpm-helper-ba90dd5900e9d66b606f6f44ff559fdd34ab0fc0.tar.gz
rpm-helper-ba90dd5900e9d66b606f6f44ff559fdd34ab0fc0.tar.bz2
rpm-helper-ba90dd5900e9d66b606f6f44ff559fdd34ab0fc0.tar.xz
rpm-helper-ba90dd5900e9d66b606f6f44ff559fdd34ab0fc0.zip
avoid computing number of possible chars explicitely
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