aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-03-16 06:07:06 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-03-16 06:29:07 +0100
commitdcd4734b89908ad91bf9a537bdb5c3d615537fc2 (patch)
treefa1b7bbfc2de2c232c661e7cf85ece8f1a6885db /id/server/idserverlib/src
parent60e6b93ead4df30f24dc08d92ddcf4e0c04a8ec4 (diff)
downloadmoa-id-spss-dcd4734b89908ad91bf9a537bdb5c3d615537fc2.tar.gz
moa-id-spss-dcd4734b89908ad91bf9a537bdb5c3d615537fc2.tar.bz2
moa-id-spss-dcd4734b89908ad91bf9a537bdb5c3d615537fc2.zip
make nextByteRandom synchronized to additionally prevent problems with IAIK_JCE and Java JDK => 8u111
Diffstat (limited to 'id/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java2
1 files changed, 1 insertions, 1 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 1f9050a31..ac2b3c415 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
@@ -168,7 +168,7 @@ public class Random {
* @param size Size of random number in bits
* @return
*/
- private static byte[] nextByteRandom(int size) {
+ private static synchronized byte[] nextByteRandom(int size) {
byte[] b = new byte[size];
random.nextBytes(b);
return b;