From a39d44883f3424d04134e4105873e88336b00795 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Wed, 13 Mar 2013 10:23:34 +0100
Subject: [PATCH] proper uuid for queries

---
 engine/manifoldquery.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/engine/manifoldquery.py b/engine/manifoldquery.py
index dfa8b9b3..ab09bfe7 100644
--- a/engine/manifoldquery.py
+++ b/engine/manifoldquery.py
@@ -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:
 
-- 
2.47.0