# HG changeset patch # User Jeff Hammel # Date 1273169219 25200 # Node ID 543d08958b6762d2ec26c7a4eadea108e7b1278c # Parent e846544b4d926c24225391dcd66fb85270714c94 actually sample 8 random lowercase letters and numbers for the profile hash diff -r e846544b4d92 -r 543d08958b67 profilemanager/manager.py --- 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)