aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz/Fuzz.h
diff options
context:
space:
mode:
authorGravatar kjlubick <kjlubick@google.com>2016-04-05 12:48:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-05 12:48:47 -0700
commit4319593988db5796023d9f5f34a8ed285c2097dd (patch)
tree66b1e5d6ab8c25d67705ad82e492e3c3a31aff80 /fuzz/Fuzz.h
parent8c0326df5f600da43a054dad3b354221dd6b790f (diff)
Do an in-place replacement of SkRandom with Fuzz for FilterFuzz
This feels rather clunky, because we aren't using the full potential of the fuzzer, but it works, it seems. BUG=skia:4969 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1710183002 Review URL: https://codereview.chromium.org/1710183002
Diffstat (limited to 'fuzz/Fuzz.h')
-rw-r--r--fuzz/Fuzz.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzz/Fuzz.h b/fuzz/Fuzz.h
index 26a8d429b3..07c2c8456e 100644
--- a/fuzz/Fuzz.h
+++ b/fuzz/Fuzz.h
@@ -21,6 +21,8 @@ public:
uint32_t nextU();
// This can be nan, +- infinity, 0, anything.
float nextF();
+ // Returns a float between [0..1) as a IEEE float
+ float nextF1();
// Return the next fuzzed value [min, max) as an unsigned 32bit integer.
uint32_t nextRangeU(uint32_t min, uint32_t max);