about summary refs log tree commit diff
path: root/include/afl-fuzz.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-10-12 11:12:16 +0200
committervan Hauser <vh@thc.org>2020-10-12 11:12:16 +0200
commitd9b63766dfdb8feeb1dc6f7c51c17abf07ee4086 (patch)
treeea02a1c1423c681e0aedfda2ecc326e5b1c97ec8 /include/afl-fuzz.h
parent5427f7ca981a537f14f842a98d5981463efe8c5b (diff)
downloadafl++-d9b63766dfdb8feeb1dc6f7c51c17abf07ee4086.tar.gz
fix new seed selection algo
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r--include/afl-fuzz.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index 45de197d..85597150 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -1045,6 +1045,9 @@ u8 input_to_state_stage(afl_state_t *afl, u8 *orig_buf, u8 *buf, u32 len,
 /* xoshiro256** */
 uint64_t rand_next(afl_state_t *afl);
 
+/* probability between 0.0 and 1.0 */
+double rand_next_percent(afl_state_t *afl);
+
 /**** Inline routines ****/
 
 /* Generate a random number (from 0 to limit - 1). This may