aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-03-09 09:15:03 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-03-09 09:15:03 +0100
commitf9020f47b60bc1cff6c671461924ba606ce87853 (patch)
treedd05ff3e0467293094253a495eb203e71a5d1be5 /id/server/idserverlib/src/main/java
parentf66ed1831a4877d6c7cb3c55bbc3fd84024a1523 (diff)
downloadmoa-id-spss-f9020f47b60bc1cff6c671461924ba606ce87853.tar.gz
moa-id-spss-f9020f47b60bc1cff6c671461924ba606ce87853.tar.bz2
moa-id-spss-f9020f47b60bc1cff6c671461924ba606ce87853.zip
fix some problems in ELGA-mandate module
Diffstat (limited to 'id/server/idserverlib/src/main/java')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java
index 07679999b..47f784c33 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java
@@ -99,7 +99,7 @@ public class Random {
char preFix = allowedPreFix[Math.abs(random.nextInt() % allowedPreFix.length)];
//generate ID
- return preFix + new String(Hex.encodeHex(Bytes.concat(now.getBytes(), randValue), true)); // 20 bytes = 160 bits
+ return preFix + new String(Hex.encodeHex(Bytes.concat(now.getBytes(), randValue))); // 20 bytes = 160 bits
}
@@ -111,7 +111,7 @@ public class Random {
* @return random hex encoded value [256bit]
*/
public static String nextHexRandom() {
- return new String(Hex.encodeHex(nextByteRandom(32), true)); // 32 bytes = 256 bits
+ return new String(Hex.encodeHex(nextByteRandom(32))); // 32 bytes = 256 bits
}