Merge "Use urandom rather than openssl for password gen"
This commit is contained in:
commit
40c4313edd
2
stack.sh
2
stack.sh
@ -410,7 +410,7 @@ function read_password {
|
|||||||
echo "Invalid chars in password. Try again:"
|
echo "Invalid chars in password. Try again:"
|
||||||
done
|
done
|
||||||
if [ ! $pw ]; then
|
if [ ! $pw ]; then
|
||||||
pw=`openssl rand -hex 10`
|
pw=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 20)
|
||||||
fi
|
fi
|
||||||
eval "$var=$pw"
|
eval "$var=$pw"
|
||||||
echo "$var=$pw" >> $localrc
|
echo "$var=$pw" >> $localrc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user