Fix typo in warning message.

This commit is contained in:
Daniel Darabos 2015-07-29 18:27:40 +02:00 committed by Norman Maurer
parent 595fb88839
commit 0f4d6c386e

View File

@ -75,7 +75,7 @@ public final class ThreadLocalRandom extends Random {
static { static {
if (initialSeedUniquifier == 0) { if (initialSeedUniquifier == 0) {
// Try to generate a real random number from /dev/random. // Try to generate a real random number from /dev/random.
// Get from a different thread to avoid blocking indefinitely on a machine without much entrophy. // Get from a different thread to avoid blocking indefinitely on a machine without much entropy.
seedGeneratorThread = new Thread("initialSeedUniquifierGenerator") { seedGeneratorThread = new Thread("initialSeedUniquifierGenerator") {
@Override @Override
public void run() { public void run() {
@ -156,7 +156,7 @@ public final class ThreadLocalRandom extends Random {
seedGeneratorThread.interrupt(); seedGeneratorThread.interrupt();
logger.warn( logger.warn(
"Failed to generate a seed from SecureRandom within {} seconds. " + "Failed to generate a seed from SecureRandom within {} seconds. " +
"Not enough entrophy?", timeoutSeconds "Not enough entropy?", timeoutSeconds
); );
break; break;
} }