diff --git a/src/main/java/net/schmizz/sshj/DefaultConfig.java b/src/main/java/net/schmizz/sshj/DefaultConfig.java index c47beb073..ddf79c38b 100644 --- a/src/main/java/net/schmizz/sshj/DefaultConfig.java +++ b/src/main/java/net/schmizz/sshj/DefaultConfig.java @@ -146,8 +146,7 @@ protected void initKeyAlgorithms() { } protected void initRandomFactory(boolean bouncyCastleRegistered) { - setRandomFactory(new SingletonRandomFactory(bouncyCastleRegistered - ? new BouncyCastleRandom.Factory() : new JCERandom.Factory())); + setRandomFactory(new SingletonRandomFactory(new JCERandom.Factory())); } protected void initFileKeyProviderFactories(boolean bouncyCastleRegistered) {