viff

changeset 1032:62fca9b7b777

Use new input method in benchmark code. The old code was broken since revision a1aa8bc840e1 when we switched from using prss_share_random to shamir_share to distribute the inputs.
author Martin Geisler <mg@daimi.au.dk>
date Sun, 30 Nov 2008 17:33:19 +0100
parents 85aad12606fb
children dcb0e2794219
files apps/benchmark.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark.py	Sun Nov 30 17:31:02 2008 +0100
     1.2 +++ b/apps/benchmark.py	Sun Nov 30 17:33:19 2008 +0100
     1.3 @@ -204,8 +204,8 @@
     1.4                  b = rand.randint(0, Zp.modulus)
     1.5              else:
     1.6                  a, b = None, None
     1.7 -            self.a_shares.append(self.rt.shamir_share([inputter], Zp, a))
     1.8 -            self.b_shares.append(self.rt.shamir_share([inputter], Zp, b))
     1.9 +            self.a_shares.append(self.rt.input([inputter], Zp, a))
    1.10 +            self.b_shares.append(self.rt.input([inputter], Zp, b))
    1.11          shares_ready = gather_shares(self.a_shares + self.b_shares)
    1.12          shares_ready.addCallback(self.sync_test)
    1.13