From 953aa7904062bbf808a6f566de898bc794583b8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 27 Jan 2000 21:09:25 +0000 Subject: [PATCH] A couple of things were reversed for BN_pseudo_rand ... --- crypto/bn/bn_rand.c | 4 ++-- doc/crypto/BN_rand.pod | 2 +- 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 -- 2.34.1