From 99a97051d4562d4501bd38d6aeb6a0ba1ab034ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulf=20M=C3=B6ller?= Date: Wed, 1 Mar 2000 17:42:06 +0000 Subject: [PATCH] pseudo-seed for the PRNG before testing DSA --- apps/speed.c | 6 ++++++ apps/testdsa.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/apps/speed.c b/apps/speed.c index b3130def8b..f7a8e00a8b 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1030,6 +1030,11 @@ int MAIN(int argc, char **argv) RAND_pseudo_bytes(buf,20); #ifndef NO_DSA + if (RAND_status() != 1) + { + RAND_seed(rnd_seed, sizeof rnd_seed); + rnd_fake = 1; + } for (j=0; j