diff profilemanager/manager.py @ 15:543d08958b67

actually sample 8 random lowercase letters and numbers for the profile hash
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 11:06:59 -0700
parents c77e9bef78d6
children c80d44e5ca41
line wrap: on
line diff
--- a/profilemanager/manager.py	Thu May 06 07:49:43 2010 -0700
+++ b/profilemanager/manager.py	Thu May 06 11:06:59 2010 -0700
@@ -4,7 +4,9 @@
 
 import os
 import shutil
+import string
 import ConfigParser
+from random import Random
 from utils import format_tabular
 from ConfigParser import SafeConfigParser as ConfigParser
 
@@ -164,7 +166,7 @@
         """
         generate a random hash for a new profile
         """
-        # XXX right now this is completely fake
-        return 'FOO'
+        population = string.lowercase + string.digits
+        return Random().sample(population, 8)