diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index dd6f6c9e4..943712c15 100644 --- a/crypto/bn/bn_rand.c +++ b/crypto/bn/bn_rand.c @@ -127,10 +127,10 @@ err: int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) { - return bnrand(1, rnd, bits, top, bottom); + return bnrand(0, rnd, bits, top, bottom); } int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) { - return bnrand(0, rnd, bits, top, bottom); + return bnrand(1, rnd, bits, top, bottom); } diff --git a/doc/crypto/BN_rand.pod b/doc/crypto/BN_rand.pod index 47991b1ab..f090df690 100644 --- a/doc/crypto/BN_rand.pod +++ b/doc/crypto/BN_rand.pod @@ -2,7 +2,7 @@ =head1 NAME -BN_rand, BN_rand_pseudo - Generate pseudo-random number +BN_rand, BN_pseudo_rand - Generate pseudo-random number =head1 SYNOPSIS