author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 24 Feb 2010 15:00:15 +0100 | |
branch | stable |
changeset 4693 | 1eaf5ce04844 |
parent 4692 | 11a040e2601c |
child 4694 | c19366a12281 |
--- 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: