Use BN_pseudo_rand instead of BN_rand
authorBodo Möller <bodo@openssl.org>
Tue, 28 Nov 2000 11:49:12 +0000 (11:49 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 28 Nov 2000 11:49:12 +0000 (11:49 +0000)
crypto/bn/expspeed.c

index e9c1fee7ab44dcfd3574f9a123b8230efeafea30..99cf2c52a856a99d77ec33e0feb347aabae161df 100644 (file)
@@ -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);