diff options
Diffstat (limited to 'src/regress/lib/libcrypto/exp/exptest.c')
-rw-r--r-- | src/regress/lib/libcrypto/exp/exptest.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/exp/exptest.c b/src/regress/lib/libcrypto/exp/exptest.c index faa9328ba9..5f9b663a26 100644 --- a/src/regress/lib/libcrypto/exp/exptest.c +++ b/src/regress/lib/libcrypto/exp/exptest.c | |||
@@ -62,7 +62,6 @@ | |||
62 | 62 | ||
63 | #include <openssl/bio.h> | 63 | #include <openssl/bio.h> |
64 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
65 | #include <openssl/rand.h> | ||
66 | #include <openssl/err.h> | 65 | #include <openssl/err.h> |
67 | 66 | ||
68 | #define NUM_BITS (BN_BITS*2) | 67 | #define NUM_BITS (BN_BITS*2) |
@@ -97,15 +96,15 @@ int main(int argc, char *argv[]) | |||
97 | 96 | ||
98 | for (i=0; i<200; i++) | 97 | for (i=0; i<200; i++) |
99 | { | 98 | { |
100 | RAND_bytes(&c,1); | 99 | arc4random_buf(&c,1); |
101 | c=(c%BN_BITS)-BN_BITS2; | 100 | c=(c%BN_BITS)-BN_BITS2; |
102 | BN_rand(a,NUM_BITS+c,0,0); | 101 | BN_rand(a,NUM_BITS+c,0,0); |
103 | 102 | ||
104 | RAND_bytes(&c,1); | 103 | arc4random_buf(&c,1); |
105 | c=(c%BN_BITS)-BN_BITS2; | 104 | c=(c%BN_BITS)-BN_BITS2; |
106 | BN_rand(b,NUM_BITS+c,0,0); | 105 | BN_rand(b,NUM_BITS+c,0,0); |
107 | 106 | ||
108 | RAND_bytes(&c,1); | 107 | arc4random_buf(&c,1); |
109 | c=(c%BN_BITS)-BN_BITS2; | 108 | c=(c%BN_BITS)-BN_BITS2; |
110 | BN_rand(m,NUM_BITS+c,0,1); | 109 | BN_rand(m,NUM_BITS+c,0,1); |
111 | 110 | ||