ensure make_uid return something that may be used as dom id stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 24 Feb 2010 15:00:15 +0100
branchstable
changeset 4693 1eaf5ce04844
parent 4692 11a040e2601c
child 4694 c19366a12281
ensure make_uid return something that may be used as dom id
utils.py
--- 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: