BN_bntest_rand
int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);
CHECK_GOTO(BN_bntest_rand(c, 30, 0, 1)); /* must be odd for montgomery */
CHECK_GOTO(BN_bntest_rand(a, 20 + i * 5, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
CHECK_GOTO(BN_bntest_rand(c, 30, 0, 1)); /* must be odd for montgomery */
CHECK_GOTO(BN_bntest_rand(a, 20 + i * 5, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
CHECK_GOTO(BN_bntest_rand(c, 30, 0, 1)); /* must be odd for montgomery */
CHECK_GOTO(BN_bntest_rand(a, 20 + i * 5, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
CHECK_GOTO(BN_bntest_rand(c, 30, 0, 1)); /* must be odd for montgomery */
CHECK_GOTO(BN_bntest_rand(a, 20 + i * 5, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
CHECK_GOTO(BN_bntest_rand(m, 1024, 0, 1)); /* must be odd for montgomery */
CHECK_GOTO(BN_bntest_rand(a, 1024, 0, 0));
CHECK_GOTO(BN_bntest_rand(p, 1024, 0, 0));
CHECK_GOTO(BN_bntest_rand(e, 1024, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 20 + i * 5, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 2 + i, 0, 0));
if (!BN_bntest_rand(a, 512, 0, 0))
if (!BN_bntest_rand(r, 256, 0, 3))
if (!BN_bntest_rand(a, 256, 0, 3))
CHECK_GOTO(BN_bntest_rand(a, 200, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 200, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 200, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 200, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 512, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 450 + i, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 512, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 400 + i - num1, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 400, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 50 + 3 * (i - num1), 0, 0));
if (!BN_bntest_rand(a, 512, -1, 0) ||
!BN_bntest_rand(b, BN_BITS2, -1, 0))
CHECK_GOTO(BN_bntest_rand(a, 400, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 50 + 3 * (i - num1), 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 100, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 100, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, i - num1, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 40 + i * 10, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 100, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 100, 0, 0));
CHECK_GOTO(BN_bntest_rand(n, bits, 0, 1));
CHECK_GOTO(BN_bntest_rand(a, 1024, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 450 + i * 10, 0, 0));
CHECK_GOTO(BN_bntest_rand(c, 1024, 0, 0));
CHECK_GOTO(BN_bntest_rand(a, 475 + i * 10, 0, 0));
CHECK_GOTO(BN_bntest_rand(b, 425 + i * 11, 0, 0));