{"action":"closed","issue":{"url":"https://api.github.com/repos/vt-middleware/cryptacular/issues/18","labels_url":"https://api.github.com/repos/vt-middleware/cryptacular/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/vt-middleware/cryptacular/issues/18/comments","events_url":"https://api.github.com/repos/vt-middleware/cryptacular/issues/18/events","html_url":"https://github.com/vt-middleware/cryptacular/issues/18","id":63005479,"number":18,"title":"RandomIdGenerator is not thread safe","user":{"login":"serac","id":111432,"avatar_url":"https://avatars.githubusercontent.com/u/111432?v=3","gravatar_id":"","url":"https://api.github.com/users/serac","html_url":"https://github.com/serac","followers_url":"https://api.github.com/users/serac/followers","following_url":"https://api.github.com/users/serac/following{/other_user}","gists_url":"https://api.github.com/users/serac/gists{/gist_id}","starred_url":"https://api.github.com/users/serac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serac/subscriptions","organizations_url":"https://api.github.com/users/serac/orgs","repos_url":"https://api.github.com/users/serac/repos","events_url":"https://api.github.com/users/serac/events{/privacy}","received_events_url":"https://api.github.com/users/serac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vt-middleware/cryptacular/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T14:35:36Z","updated_at":"2015-03-19T20:55:00Z","closed_at":"2015-03-19T20:55:00Z","body":"IdGenerators are intended to be thread safe, yet this component is not due to the use of `org.bouncycastle.crypto.prng.drbg.HashSP800DRBG`, which is not thread safe. Errors like the following may arise under moderate concurrency:\r\n\r\n    Caused by: java.lang.ArrayIndexOutOfBoundsException: 4\r\n        at org.bouncycastle.crypto.digests.GeneralDigest.update(Unknown Source)\r\n        at org.bouncycastle.crypto.digests.GeneralDigest.update(Unknown Source)\r\n        at org.bouncycastle.crypto.prng.drbg.HashSP800DRBG.doHash(Unknown Source)\r\n        at org.bouncycastle.crypto.prng.drbg.HashSP800DRBG.hashgen(Unknown Source)\r\n        at org.bouncycastle.crypto.prng.drbg.HashSP800DRBG.generate(Unknown Source)\r\n        at org.cryptacular.generator.RandomIdGenerator.generate(RandomIdGenerator.java:69)"}}