viff

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 diff
     1.1 --- a/viff/bedoza_triple.py	Mon Jul 19 15:38:13 2010 +0200
     1.2 +++ b/viff/bedoza_triple.py	Tue Jul 20 09:37:36 2010 +0200
     1.3 @@ -265,7 +265,7 @@
     1.4          for j in range(self.runtime.num_players):
     1.5              # TODO: This is probably not the fastes way to generate
     1.6              # the betas.
     1.7 -            beta = self.random.randint(0, 2**(4 * self.k))
     1.8 +            beta = self.random.randint(0, self.u_bound)
     1.9              # TODO: Outcommented until mod paillier works for negative numbers.
    1.10              #if rand.choice([True, False]):
    1.11              #    beta = -beta