From 9b8fae6158d1f68a5551f23868c57d730f70d08f Mon Sep 17 00:00:00 2001 From: Alan Fairless Date: Fri, 1 Nov 2013 09:51:35 -0500 Subject: [PATCH] Revised patch for more password entropy --- cloud/linode | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/linode b/cloud/linode index 8c71e55f651..b7d1aaa8c44 100644 --- a/cloud/linode +++ b/cloud/linode @@ -174,6 +174,8 @@ def randompass(): # we play it safe :) import random import string + # as of python 2.4, this reseeds the PRNG from urandom + random.seed() lower = ''.join(random.choice(string.ascii_lowercase) for x in range(6)) upper = ''.join(random.choice(string.ascii_uppercase) for x in range(6)) number = ''.join(random.choice(string.digits) for x in range(6))