mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Use BN_pseudo_rand instead of BN_rand
This commit is contained in:
parent
c94b6de017
commit
adcc64cd9e
@ -191,9 +191,9 @@ void do_mul_exp(BIGNUM *r, BIGNUM *a, BIGNUM *b, BIGNUM *c, BN_CTX *ctx)
|
||||
num=BASENUM;
|
||||
for (i=0; i<NUM_SIZES; i++)
|
||||
{
|
||||
BN_rand(a,sizes[i],1,0);
|
||||
BN_rand(b,sizes[i],1,0);
|
||||
BN_rand(c,sizes[i],1,1);
|
||||
BN_pseudo_rand(a,sizes[i],1,0);
|
||||
BN_pseudo_rand(b,sizes[i],1,0);
|
||||
BN_pseudo_rand(c,sizes[i],1,1);
|
||||
BN_mod(a,a,c,ctx);
|
||||
BN_mod(b,b,c,ctx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user