Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-10-03 06:10:25 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-10-03 06:10:25 +0400
commit164179d20cf4d2533633ad11bc04b29c8c45530e (patch)
tree774bd1d1907eb0c63fdb435e376eb50cf7b84385 /core/src
parent1e1cb605b9b58016a618f6e546d5cb0d0dbf8f23 (diff)
Minor re-ordering of setup
Diffstat (limited to 'core/src')
-rw-r--r--core/src/test/java/org/bouncycastle/math/ec/test/ECPointPerformanceTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/java/org/bouncycastle/math/ec/test/ECPointPerformanceTest.java b/core/src/test/java/org/bouncycastle/math/ec/test/ECPointPerformanceTest.java
index 060b723d..eb8e3618 100644
--- a/core/src/test/java/org/bouncycastle/math/ec/test/ECPointPerformanceTest.java
+++ b/core/src/test/java/org/bouncycastle/math/ec/test/ECPointPerformanceTest.java
@@ -24,14 +24,14 @@ public class ECPointPerformanceTest extends TestCase
private void randMult(final String curveName) throws Exception
{
- SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
- random.setSeed(System.currentTimeMillis());
-
X9ECParameters spec = ECNamedCurveTable.getByName(curveName);
ECCurve C = spec.getCurve();
ECPoint G = (ECPoint) spec.getG();
BigInteger n = spec.getN();
+ SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
+ random.setSeed(System.currentTimeMillis());
+
System.out.println(curveName);
int[] coords = ECCurve.getAllCoordinateSystems();