Commits

James Mills committed 4f3476a

Use sample instead of shuffle for mkpasswd function

Comments (0)

Files changed (1)

 from time import time
 from os.path import isfile
 from itertools import chain
-from random import seed, choice, shuffle
+from random import seed, choice, sample
 
 
 class Error(Exception):
         )
     )
 
-    shuffle(password)
-
-    return "".join(password)
+    return "".join(sample(password, len(password)))
 
 
 def validateEmail(email):