Don't call BN_rand with zero bits in bntest.c

This commit is contained in:
Dr. Stephen Henson
2000-02-27 17:34:30 +00:00
parent 2eb5bc5c6d
commit 587bb0e02e
2 changed files with 4 additions and 1 deletions

View File

@@ -506,7 +506,7 @@ int test_mul(BIO *bp)
for (i=0; i<num0+num1; i++)
{
if (i < num1)
if (i <= num1)
{
BN_rand(&a,100,0,0);
BN_rand(&b,100,0,0);