Use a CSPRNG to generate passwords.

This commit is contained in:
mmdriley 2014-06-10 15:58:51 -07:00
parent 55eb0bdb73
commit d482673bcb

View File

@ -88,6 +88,6 @@ function get-password {
return
fi
user=admin
passwd=$(python -c 'import string,random; print "".join(random.choice(string.ascii_letters + string.digits) for _ in range(16))')
passwd=$(python -c 'import string,random; print "".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(16))')
}