From a4e57f2019867c7ee86508fc5b136d73fd4922d9 Mon Sep 17 00:00:00 2001 From: David Hook Date: Fri, 29 Dec 2023 15:02:49 +1100 Subject: [PATCH] removed service priming code for DEFAULT - with latest JVMs it appears to have the opposite to intended affect. Relates to github #1549 --- .../org/bouncycastle/jce/provider/BouncyCastleProvider.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/prov/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java b/prov/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java index 849a913beb..92df956374 100644 --- a/prov/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java +++ b/prov/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java @@ -253,8 +253,6 @@ private void setup() put("CertStore.LDAP", "org.bouncycastle.jce.provider.X509LDAPCertStoreSpi"); put("CertStore.Multi", "org.bouncycastle.jce.provider.MultiCertStoreSpi"); put("Alg.Alias.CertStore.X509LDAP", "LDAP"); - - getService("SecureRandom", "DEFAULT"); // prime for new SecureRandom() on 1.8 JVMs. } public final Service getService(final String type, final String algorithm)