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 wrap: on
line diff
--- a/apps/benchmark.py	Sun Nov 30 17:31:02 2008 +0100
+++ b/apps/benchmark.py	Sun Nov 30 17:33:19 2008 +0100
@@ -204,8 +204,8 @@
                 b = rand.randint(0, Zp.modulus)
             else:
                 a, b = None, None
-            self.a_shares.append(self.rt.shamir_share([inputter], Zp, a))
-            self.b_shares.append(self.rt.shamir_share([inputter], Zp, b))
+            self.a_shares.append(self.rt.input([inputter], Zp, a))
+            self.b_shares.append(self.rt.input([inputter], Zp, b))
         shares_ready = gather_shares(self.a_shares + self.b_shares)
         shares_ready.addCallback(self.sync_test)