提交 953aa790 编写于 作者: B Bodo Möller

A couple of things were reversed for BN_pseudo_rand ...

上级 01d16b54
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册