From d482673bcb5c07d128b5434f0d903f3bdd1881e5 Mon Sep 17 00:00:00 2001 From: mmdriley Date: Tue, 10 Jun 2014 15:58:51 -0700 Subject: [PATCH] Use a CSPRNG to generate passwords. --- cluster/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/util.sh b/cluster/util.sh index 668889de7f6b..0419238d2a5a 100755 --- a/cluster/util.sh +++ b/cluster/util.sh @@ -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))') }