renamed UB to rand_below

This commit is contained in:
Dominik Maier
2020-03-21 22:26:13 +01:00
parent 5cf3426834
commit f08a3fedf6
6 changed files with 133 additions and 133 deletions

View File

@ -304,7 +304,7 @@ static void shuffle_ptrs(afl_state_t *afl, void **ptrs, u32 cnt) {
for (i = 0; i < cnt - 2; ++i) {
u32 j = i + UR(afl, cnt - i);
u32 j = i + rand_below(afl, cnt - i);
void *s = ptrs[i];
ptrs[i] = ptrs[j];
ptrs[j] = s;