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/dsa/dsatest.c | |
parent | 691401fc53cc14cd98ac885e842e1e8370280abc (diff) | |
download | openssl-7d388202bd3214756031aef72d3fafd33e50faca.tar.gz |
add "randomness"
Diffstat (limited to 'crypto/dsa/dsatest.c')
-rw-r--r-- | crypto/dsa/dsatest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c index 0137fcf1f4..220f71c260 100644 --- a/crypto/dsa/dsatest.c +++ b/crypto/dsa/dsatest.c @@ -120,6 +120,8 @@ static unsigned char out_g[]={ static const unsigned char str1[]="12345678901234567890"; +static const char rnd_seed[] = "string to make the random number generator think it has entropy"; + static BIO *bio_err=NULL; int main(int argc, char **argv) @@ -131,6 +133,8 @@ int main(int argc, char **argv) unsigned char sig[256]; unsigned int siglen; + RAND_seed(rnd_seed, sizeof rnd_seed); + if (bio_err == NULL) bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); |