diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-23 23:32:44 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-23 23:32:44 +0800 |
commit | cb252296c56bad82a053bd2de056d489505101be (patch) | |
tree | df40cf7b41111e8564996d6798e256f6faa1c981 /fuzz/fuzz-common.c | |
parent | f37def57b089a884df51072cb24e830701ecbeaa (diff) |
Add some more variation to fuzzer random number generation
Diffstat (limited to 'fuzz/fuzz-common.c')
-rw-r--r-- | fuzz/fuzz-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz-common.c b/fuzz/fuzz-common.c index 60dab21..a158691 100644 --- a/fuzz/fuzz-common.c +++ b/fuzz/fuzz-common.c @@ -25,7 +25,7 @@ void fuzz_common_setup(void) { fuzz.input = m_malloc(sizeof(buffer)); _dropbear_log = fuzz_dropbear_log; crypto_init(); - fuzz_seed(); + fuzz_seed("start", 5); /* let any messages get flushed */ setlinebuf(stdout); } @@ -42,7 +42,7 @@ int fuzz_set_input(const uint8_t *Data, size_t Size) { memset(&cli_ses, 0x0, sizeof(cli_ses)); wrapfd_setup(fuzz.input); - fuzz_seed(); + fuzz_seed(fuzz.input->data, MIN(fuzz.input->len, 16)); return DROPBEAR_SUCCESS; } |