about summary refs log tree commit diff
path: root/src/afl-fuzz.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-20 12:08:31 +0200
committervan Hauser <vh@thc.org>2020-07-20 12:08:31 +0200
commit6c163910eec79058bdaf3a358e75d579da1f9112 (patch)
tree8b625ea3615e3c0c3a1f6c8feed15c71c1f36cdf /src/afl-fuzz.c
parent9151cb9ba23ac55273c9886b7c2fb7e185cdc4e8 (diff)
downloadafl++-6c163910eec79058bdaf3a358e75d579da1f9112.tar.gz
debug test for rng
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r--src/afl-fuzz.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 872ed9ae..df2896d2 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1048,6 +1048,12 @@ int main(int argc, char **argv_orig, char **envp) {
 
   }
 
+  #ifdef RAND_TEST_VALUES
+  u32 counter;
+  for (counter = 0; counter < 100000; counter++)
+    printf("DEBUG: rand %06d is %u\n", counter, rand_below(afl, 65536));
+  #endif
+
   setup_custom_mutators(afl);
 
   setup_cmdline_file(afl, argv + optind);