aboutsummaryrefslogtreecommitdiff
path: root/id/server
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:07:06 +0100
commit2d145dfabe6194bd6fc497e5a143da52304e744e (patch)
treebe4db053f4b17d0a311e3bec4e06af33f9cb6066 /id/server
parent0a161a07b208a4ad88b301e09471cb0ba74502ad (diff)
downloadmoa-id-spss-2d145dfabe6194bd6fc497e5a143da52304e744e.tar.gz
moa-id-spss-2d145dfabe6194bd6fc497e5a143da52304e744e.tar.bz2
moa-id-spss-2d145dfabe6194bd6fc497e5a143da52304e744e.zip
make nextByteRandom synchronized to additionally prevent problems with IAIK_JCE and Java JDK => 8u111
Diffstat (limited to 'id/server')
-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;