Repository: incubator-pirk Updated Branches: refs/heads/master 53f548a87 -> d70b816e5
[PIRK-58] - Improve Paillier Test Speed -- closes apache/incubator-pirk#82 Project: http://git-wip-us.apache.org/repos/asf/incubator-pirk/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-pirk/commit/d70b816e Tree: http://git-wip-us.apache.org/repos/asf/incubator-pirk/tree/d70b816e Diff: http://git-wip-us.apache.org/repos/asf/incubator-pirk/diff/d70b816e Branch: refs/heads/master Commit: d70b816e5671acc15ff42b926d09fa51c2145e06 Parents: 53f548a Author: eawilliams <[email protected]> Authored: Sat Aug 27 15:36:12 2016 -0400 Committer: eawilliams <[email protected]> Committed: Sat Aug 27 15:36:12 2016 -0400 ---------------------------------------------------------------------- src/test/java/org/apache/pirk/general/PaillierTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/d70b816e/src/test/java/org/apache/pirk/general/PaillierTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/pirk/general/PaillierTest.java b/src/test/java/org/apache/pirk/general/PaillierTest.java index 14347fa..1cc35d1 100644 --- a/src/test/java/org/apache/pirk/general/PaillierTest.java +++ b/src/test/java/org/apache/pirk/general/PaillierTest.java @@ -257,7 +257,7 @@ public class PaillierTest { Random r = new Random(); int lowBitLength = 3073; // inclusive - int highBitLength = 7001; // exclusive + int highBitLength = 4000; // exclusive int loopVal = 1; // int loopVal = 1000; //change this and re-test for high loop testing for (int i = 0; i < loopVal; ++i) @@ -267,7 +267,7 @@ public class PaillierTest basicTestPaillierWithKeyGeneration(bitLength, certainty, ensureBitSet); basicTestPaillierWithKeyGeneration(3072, certainty, ensureBitSet); - // Test with random bit length between 3073 and 7000 + // Test with random bit length between 3073 and 4000 int randomLargeBitLength = r.nextInt(highBitLength - lowBitLength) + lowBitLength; basicTestPaillierWithKeyGeneration(randomLargeBitLength, certainty, ensureBitSet); }
