changeset 1506:5d340ba92fff

BeDOZa: Reused self.u_bound.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 20 Jul 2010 09:37:36 +0200
parents 60cbf0d030c7
children 3787ff4776bc
files viff/bedoza_triple.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/bedoza_triple.py	Mon Jul 19 15:38:13 2010 +0200
+++ b/viff/bedoza_triple.py	Tue Jul 20 09:37:36 2010 +0200
@@ -265,7 +265,7 @@
         for j in range(self.runtime.num_players):
             # TODO: This is probably not the fastes way to generate
             # the betas.
-            beta = self.random.randint(0, 2**(4 * self.k))
+            beta = self.random.randint(0, self.u_bound)
             # TODO: Outcommented until mod paillier works for negative numbers.
             #if rand.choice([True, False]):
             #    beta = -beta