| Index: fuzz/FilterFuzz.cpp
|
| diff --git a/fuzz/FilterFuzz.cpp b/fuzz/FilterFuzz.cpp
|
| index 81e9bf1f15689756fb65624146bdfada6c6c38b0..c4756a141a4bc5e8a8c89c67b70d80c72dc09ec3 100644
|
| --- a/fuzz/FilterFuzz.cpp
|
| +++ b/fuzz/FilterFuzz.cpp
|
| @@ -57,7 +57,8 @@ static bool return_large = false;
|
| static bool return_undef = false;
|
|
|
| static int R(int x) {
|
| - return abs(fuzz->next<int>()) % x;
|
| + int i; fuzz->nextRange(&i, 0, x-1);
|
| + return i;
|
| }
|
|
|
| #if defined _WIN32
|
| @@ -131,7 +132,8 @@ static SkString make_font_name() {
|
| }
|
|
|
| static bool make_bool() {
|
| - return fuzz->next<bool>();
|
| + bool b; fuzz->next(&b);
|
| + return b;
|
| }
|
|
|
| static SkRect make_rect() {
|
|
|