diff options
| author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-03-16 06:07:06 +0100 | 
|---|---|---|
| committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-03-16 06:07:06 +0100 | 
| commit | 2d145dfabe6194bd6fc497e5a143da52304e744e (patch) | |
| tree | be4db053f4b17d0a311e3bec4e06af33f9cb6066 /id | |
| parent | 0a161a07b208a4ad88b301e09471cb0ba74502ad (diff) | |
| download | moa-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')
| -rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/Random.java | 2 | 
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; | 
