added SO link about rand for clarification

This commit is contained in:
Dominik Maier
2020-08-31 12:11:38 +02:00
parent 33e58c1d4e
commit 92b1f9cf36

View File

@ -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);