Merge pull request #51 from mmdriley/master

Use a CSPRNG to generate passwords.
pull/6/head
brendandburns 2014-06-10 16:02:50 -07:00
commit 8b9e504574
1 changed files with 1 additions and 1 deletions

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))')
}