diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-20 22:47:19 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-20 22:47:19 +0800 |
commit | c1694230516fe1c3d78e4fd23aebd5fbc00ce21c (patch) | |
tree | 613a04012ce46ddecb6216301c7cca710cf17aac /dbrandom.c | |
parent | fdc6f323923b36add7ab7112b1b4d05368bd5902 (diff) |
glaring wrapfd problems fixed
--HG--
branch : fuzz
Diffstat (limited to 'dbrandom.c')
-rw-r--r-- | dbrandom.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -181,7 +181,8 @@ static void write_urandom() #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 @@ static void seedfuzz(void) { counter = 0; donerandinit = 1; } +#endif /* Initialise the prng from /dev/urandom or prngd. This function can * be called multiple times */ @@ -203,7 +205,6 @@ void seedrandom() { #ifdef DROPBEAR_FUZZ if (fuzz.fuzzing || fuzz.recordf) { - seedfuzz(); return; } #endif |