A couple of things were reversed for BN_pseudo_rand ...
This commit is contained in:
parent
01d16b54c2
commit
953aa79040
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user