proper uuid for queries
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 13 Mar 2013 09:23:34 +0000 (10:23 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 13 Mar 2013 09:23:34 +0000 (10:23 +0100)
engine/manifoldquery.py

index dfa8b9b..ab09bfe 100644 (file)
@@ -1,8 +1,8 @@
 import json
+import uuid
 
-# xxx php has uniqid, need to find a module for that
-counter=1
-def uniqid (): global counter; counter += 1; return counter
+def uniqid (): 
+    return uuid.uuid4().hex
 
 class ManifoldQuery: