BN_rand_ex
if (!BN_rand_ex(rnd, bits, BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ODD, 0, ctx))
int BN_rand_ex(BIGNUM *rnd, int bits, int top, int bottom,