public class PrimeGenerator
{
private static final Logger logger = LoggerFactory.getLogger(PrimeGenerator.class);
private static final HashMap<Integer,BigInteger> lowerBoundCache = new HashMap<>();
private static final HashMap<Integer,BigInteger> minimumDifferenceCache = new HashMap<>();
<BUG>private static boolean additionalChecksEnabled = SystemConfiguration.getProperty("pallier.FIPSPrimeGenerationChecks").equals("true");
</BUG>
public static BigInteger getSinglePrime(int bitLength, int certainty, Random rnd)
{
BigInteger p;

public class PrimeGenerator
{
private static final Logger logger = LoggerFactory.getLogger(PrimeGenerator.class);
private static final HashMap<Integer,BigInteger> lowerBoundCache = new HashMap<>();
private static final HashMap<Integer,BigInteger> minimumDifferenceCache = new HashMap<>();
private static boolean additionalChecksEnabled = SystemConfiguration.isSetTrue("pallier.FIPSPrimeGenerationChecks");
public static BigInteger getSinglePrime(int bitLength, int certainty, Random rnd)
{
BigInteger p;
