| ... | ... |
@@ -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 |