Prevent entropy gathering from blocking JVM shutdown
@@ -440,7 +440,9 @@ public boolean isPredictionResistant()
if (!scheduled.getAndSet(true))
{
- new Thread(new EntropyGatherer(byteLength)).start();
+ Thread gathererThread = new Thread(new EntropyGatherer(byteLength));
+ gathererThread.setDaemon(true);
+ gathererThread.start();
}
return seed;
