Commit 953aa790 authored by Bodo Möller's avatar Bodo Möller
Browse files

A couple of things were reversed for BN_pseudo_rand ...

parent 01d16b54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
	}
+1 −1
Original line number Diff line number Diff line
@@ -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