Skip to content

Commit 8b9e504

Browse files
committed
Merge pull request kubernetes#51 from mmdriley/master
Use a CSPRNG to generate passwords.
2 parents 55eb0bd + d482673 commit 8b9e504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ function get-password {
8888
return
8989
fi
9090
user=admin
91-
passwd=$(python -c 'import string,random; print "".join(random.choice(string.ascii_letters + string.digits) for _ in range(16))')
91+
passwd=$(python -c 'import string,random; print "".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(16))')
9292
}
9393

0 commit comments

Comments
 (0)