From 0233dcebb4c9510eb08ff3c4f36588fcd5fcbdbe Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 4 Mar 2018 22:11:23 +0800 Subject: [PATCH] try and improve the odds of useful fuzzer activity --- fuzz-wrapfd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fuzz-wrapfd.c b/fuzz-wrapfd.c index 39d2b62..313a110 100644 --- a/fuzz-wrapfd.c +++ b/fuzz-wrapfd.c @@ -6,12 +6,12 @@ #define IOWRAP_MAXFD (FD_SETSIZE-1) static const int MAX_RANDOM_IN = 50000; -static const double CHANCE_CLOSE = 1.0 / 300; -static const double CHANCE_INTR = 1.0 / 200; -static const double CHANCE_READ1 = 0.6; -static const double CHANCE_READ2 = 0.3; -static const double CHANCE_WRITE1 = 0.8; -static const double CHANCE_WRITE2 = 0.3; +static const double CHANCE_CLOSE = 1.0 / 600; +static const double CHANCE_INTR = 1.0 / 900; +static const double CHANCE_READ1 = 0.96; +static const double CHANCE_READ2 = 0.5; +static const double CHANCE_WRITE1 = 0.96; +static const double CHANCE_WRITE2 = 0.5; struct fdwrap { enum wrapfd_mode mode;