A couple of things were reversed for BN_pseudo_rand ...

This commit is contained in:
Bodo Möller 2000-01-27 21:09:25 +00:00
parent 01d16b54c2
commit 953aa79040
2 changed files with 3 additions and 3 deletions

View File

@ -127,10 +127,10 @@ err:
int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) 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) 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);
} }

View File

@ -2,7 +2,7 @@
=head1 NAME =head1 NAME
BN_rand, BN_rand_pseudo - Generate pseudo-random number BN_rand, BN_pseudo_rand - Generate pseudo-random number
=head1 SYNOPSIS =head1 SYNOPSIS