From ba90dd5900e9d66b606f6f44ff559fdd34ab0fc0 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Thu, 15 Feb 2007 15:24:13 +0000 Subject: avoid computing number of possible chars explicitely --- get-password | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1