Fixed range of random produced in BN_is_prime_fasttest_ex() to be 1 < rand < w-1...