aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssltest.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-16 12:21:22 +0000
committerUlf Möller <ulf@openssl.org>2000-01-16 12:21:22 +0000
commitb9d82f473593c04428a3b9f43f6749c6e3ed45e9 (patch)
tree98540881294223ea16f0b1f17ad837cc598744c9 /ssl/ssltest.c
parentd593983da48d7120b0c6495cbc0a63ba9fb4f589 (diff)
downloadopenssl-b9d82f473593c04428a3b9f43f6749c6e3ed45e9.zip
openssl-b9d82f473593c04428a3b9f43f6749c6e3ed45e9.tar.gz
openssl-b9d82f473593c04428a3b9f43f6749c6e3ed45e9.tar.bz2
RAND_seed
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r--ssl/ssltest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 2e373a8..28140b3 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -70,6 +70,7 @@
#include <openssl/x509.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
+#include <openssl/rand.h>
#ifdef WINDOWS
#include "../crypto/bio/bss_file.c"
#endif
@@ -106,6 +107,7 @@ static int s_nbio=0;
#endif
#endif
+static const char rnd_seed[] = "string to make the random number generator think it has entropy";
int doit_biopair(SSL *s_ssl,SSL *c_ssl,long bytes);
int doit(SSL *s_ssl,SSL *c_ssl,long bytes);
@@ -173,6 +175,8 @@ int main(int argc, char *argv[])
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
+ RAND_seed(rnd_seed, sizeof rnd_seed);
+
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
bio_stdout=BIO_new_fp(stdout,BIO_NOCLOSE);