utils.py
branchstable
changeset 4693 1eaf5ce04844
parent 4653 ca11228a5268
child 4830 10e8bc190695
child 4833 41a78fb4107c
child 4859 f65208c9dbdc
--- a/utils.py	Wed Feb 24 12:57:53 2010 +0100
+++ b/utils.py	Wed Feb 24 15:00:15 2010 +0100
@@ -26,9 +26,11 @@
 
     def make_uid(key):
         """forge a unique identifier
-        not that unique on win32"""
-        msg = str(key) + "%.10f" % time() + str(randint(0, 1000000))
-        return md5(msg).hexdigest()
+        XXX not that unique on win32
+        """
+        key = str(key)
+        msg = key + "%.10f" % time() + str(randint(0, 1000000))
+        return key + md5(msg).hexdigest()
 
 else: