changeset 1587:b579ec254988

try and improve the odds of useful fuzzer activity
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Mar 2018 22:11:23 +0800
parents e6a5e51a29c9
children 149a5329d83a
files fuzz-wrapfd.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/fuzz-wrapfd.c	Sun Mar 04 21:44:09 2018 +0800
+++ b/fuzz-wrapfd.c	Sun Mar 04 22:11:23 2018 +0800
@@ -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;