From e34bbe99366d781fc01b7b17362384e067f99e97 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Thu, 22 Dec 2011 06:55:12 -0800
Subject: [PATCH] moved to uuid based randomness for now since urandom was
 giving errors

---
 helios/views.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helios/views.py b/helios/views.py
index 166517d..da61b2a 100644
--- a/helios/views.py
+++ b/helios/views.py
@@ -514,7 +514,9 @@ def get_randomness(request, election):
   get some randomness to sprinkle into the sjcl entropy pool
   """
   return {
-    "randomness" : base64.b64encode(os.urandom(32))
+    # temporary fix
+    #"randomness" : base64.b64encode(os.urandom(32))
+    "randomness" : base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes)
     }
 
 @json
-- 
GitLab