aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-01-27 21:09:25 +0000
committerBodo Möller <bodo@openssl.org>2000-01-27 21:09:25 +0000
commit953aa7904062bbf808a6f566de898bc794583b8c (patch)
treeb0e13d30ba74fa7334ad50e3a42040bc31c15283 /crypto
parent01d16b54c25a94842f8bd70c9b00ee6ad6c977a1 (diff)
downloadopenssl-953aa7904062bbf808a6f566de898bc794583b8c.zip
openssl-953aa7904062bbf808a6f566de898bc794583b8c.tar.gz
openssl-953aa7904062bbf808a6f566de898bc794583b8c.tar.bz2
A couple of things were reversed for BN_pseudo_rand ...
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn/bn_rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c
index dd6f6c9..943712c 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);
}