diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-08-31 12:11:38 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-08-31 12:11:38 +0200 |
commit | 92b1f9cf36e7df8ce4b957e503cffca7296da048 (patch) | |
tree | c4ea753e1e4e663042204e72fe1f341b4e0bbec2 /include/afl-fuzz.h | |
parent | 33e58c1d4e6c41d9ab18935325b5794e28285b4f (diff) | |
download | afl++-92b1f9cf36e7df8ce4b957e503cffca7296da048.tar.gz |
added SO link about rand for clarification
Diffstat (limited to 'include/afl-fuzz.h')
-rw-r--r-- | include/afl-fuzz.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h index c5b01da8..964f369d 100644 --- a/include/afl-fuzz.h +++ b/include/afl-fuzz.h @@ -1027,7 +1027,9 @@ static inline u32 rand_below(afl_state_t *afl, u32 limit) { } - /* Modulo is biased - we don't want our fuzzing to be biased so let's do it right. */ + /* Modulo is biased - we don't want our fuzzing to be biased so let's do it right, see + https://stackoverflow.com/questions/10984974/why-do-people-say-there-is-modulo-bias-when-using-a-random-number-generator + */ u64 unbiased_rnd; do { unbiased_rnd = rand_next(afl); |