diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-15 21:48:46 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-15 21:48:46 +0000 |
commit | 7d388202bd3214756031aef72d3fafd33e50faca (patch) | |
tree | 788eb70e3a4bcd61e5afc92d0098cf25ce5eca8e /crypto/dh/dhtest.c | |
parent | 691401fc53cc14cd98ac885e842e1e8370280abc (diff) | |
download | openssl-7d388202bd3214756031aef72d3fafd33e50faca.tar.gz |
add "randomness"
Diffstat (limited to 'crypto/dh/dhtest.c')
-rw-r--r-- | crypto/dh/dhtest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c index dbdb963828..1346f98f83 100644 --- a/crypto/dh/dhtest.c +++ b/crypto/dh/dhtest.c @@ -87,6 +87,8 @@ static void MS_CALLBACK cb(int p, int n, void *arg); #include "bss_file.c" #endif +static const char rnd_seed[] = "string to make the random number generator think it has entropy"; + int main(int argc, char *argv[]) { DH *a; @@ -100,6 +102,8 @@ int main(int argc, char *argv[]) CRYPTO_malloc_init(); #endif + RAND_seed(rnd_seed, sizeof rnd_seed); + out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); BIO_set_fp(out,stdout,BIO_NOCLOSE); |