Browse code

Merge "Use urandom rather than openssl for password gen"

Jenkins authored on 2014/05/16 06:20:52
Showing 1 changed files
... ...
@@ -410,7 +410,7 @@ function read_password {
410 410
             echo "Invalid chars in password.  Try again:"
411 411
         done
412 412
         if [ ! $pw ]; then
413
-            pw=`openssl rand -hex 10`
413
+            pw=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 20)
414 414
         fi
415 415
         eval "$var=$pw"
416 416
         echo "$var=$pw" >> $localrc