aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/bn/bn_rand.c4
-rw-r--r--doc/crypto/BN_rand.pod2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c
index dd6f6c9e44..943712c15b 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 47991b1abc..f090df6908 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