diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index dd6f6c9e449a89d8f9349a2476df2e4aa2b62986..943712c15b8f2e31b374f4e9af98000cfc43225b 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 47991b1abc1137eaa26c24b25b67588e1cebc643..f090df6908ff5be857dbdeb97f4c1ead5760bb53 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