Mercurial > dropbear
diff dbrandom.c @ 1358:6b89eb92f872 fuzz
glaring wrapfd problems fixed
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 20 May 2017 22:47:19 +0800 |
parents | 08f4fa4dc6a0 |
children | ddfcadca3c4c |
line wrap: on
line diff
--- a/dbrandom.c Sat May 20 13:23:16 2017 +0800 +++ b/dbrandom.c Sat May 20 22:47:19 2017 +0800 @@ -181,7 +181,8 @@ #endif } -static void seedfuzz(void) { +#ifdef DROPBEAR_FUZZ +void seedfuzz(void) { hash_state hs; sha1_init(&hs); sha1_process(&hs, "fuzzfuzzfuzz", strlen("fuzzfuzzfuzz")); @@ -190,6 +191,7 @@ counter = 0; donerandinit = 1; } +#endif /* Initialise the prng from /dev/urandom or prngd. This function can * be called multiple times */ @@ -203,7 +205,6 @@ #ifdef DROPBEAR_FUZZ if (fuzz.fuzzing || fuzz.recordf) { - seedfuzz(); return; } #endif