The JavaDoc of BigInteger makes me feel very insecure, for example the following constructor says:
BigInteger(int bitLength, int certainty, Random rnd)
Constructs a randomly generated positive BigInteger that is probably prime, with the specified bitLength.
Why only probably? Why not certainly? Can I still trust that the result would be a prime number?