From d0ce5f4f88a9e7fb58dc0f0cf5974e95f00e984a Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Thu, 22 Dec 2011 07:17:32 -0800 Subject: [PATCH] back to urandom --- helios/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helios/views.py b/helios/views.py index da61b2a..ebdc81f 100644 --- a/helios/views.py +++ b/helios/views.py @@ -514,9 +514,9 @@ def get_randomness(request, election): get some randomness to sprinkle into the sjcl entropy pool """ return { - # temporary fix - #"randomness" : base64.b64encode(os.urandom(32)) - "randomness" : base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) + # back to urandom, it's fine + "randomness" : base64.b64encode(os.urandom(32)) + #"randomness" : base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes) } @json -- GitLab