diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-01-27 15:26:49 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-01-27 15:26:49 +0000 |
commit | 111d7e2bb3c4fbfed8b448633d3e8c1c6e5661db (patch) | |
tree | 869522926767e1ec6697cb18212dfa77e1e397cc /bkucommon/src | |
parent | f3d213f55047482124eb2488ca49d56b050d1071 (diff) | |
download | mocca-111d7e2bb3c4fbfed8b448633d3e8c1c6e5661db.tar.gz mocca-111d7e2bb3c4fbfed8b448633d3e8c1c6e5661db.tar.bz2 mocca-111d7e2bb3c4fbfed8b448633d3e8c1c6e5661db.zip |
Replace (important) instances of Random with SecureRandom
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1023 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon/src')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/IdValueFactoryImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/IdValueFactoryImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/IdValueFactoryImpl.java index 81747490..6856ab1a 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/IdValueFactoryImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/IdValueFactoryImpl.java @@ -26,7 +26,7 @@ package at.gv.egiz.bku.slcommands.impl.xsect; import java.util.HashMap;
import java.util.Map;
-import java.util.Random;
+import java.security.SecureRandom;
/**
* An implementation of the IdValueFactory.
@@ -108,7 +108,7 @@ public class IdValueFactoryImpl implements IdValueFactory { */
public IdValueFactoryImpl() {
- Random random = new Random();
+ SecureRandom random = new SecureRandom();
int rand = random.nextInt();
seed = Integer.toHexString(rand);
|