[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24167 - gnunet-java/src/org/gnunet/voting
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24167 - gnunet-java/src/org/gnunet/voting |
Date: |
Wed, 3 Oct 2012 23:15:49 +0200 |
Author: dold
Date: 2012-10-03 23:15:49 +0200 (Wed, 03 Oct 2012)
New Revision: 24167
Modified:
gnunet-java/src/org/gnunet/voting/VotingSimulation.java
Log:
fix
Modified: gnunet-java/src/org/gnunet/voting/VotingSimulation.java
===================================================================
--- gnunet-java/src/org/gnunet/voting/VotingSimulation.java 2012-10-03
21:15:16 UTC (rev 24166)
+++ gnunet-java/src/org/gnunet/voting/VotingSimulation.java 2012-10-03
21:15:49 UTC (rev 24167)
@@ -1,6 +1,7 @@
package org.gnunet.voting;
import java.math.BigInteger;
+import java.security.SecureRandom;
import java.util.Random;
public class VotingSimulation {
@@ -22,7 +23,7 @@
}
public static void main(String... args) {
- final Random random = new Random();
+ final Random random = new SecureRandom();
final ElGamalScheme parameters =
ElGamalScheme.generateRandomParameters(64, 10, random);
final BigInteger p = parameters.getP();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24167 - gnunet-java/src/org/gnunet/voting,
gnunet <=