Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: fuzz/Fuzz.h

Issue 1710183002: Do an in-place replacement of SkRandom with Fuzz for FilterFuzz (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: add comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fuzz/FilterFuzz.cpp ('k') | fuzz/fuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzz/Fuzz.h
diff --git a/fuzz/Fuzz.h b/fuzz/Fuzz.h
index 26a8d429b36e7621f321c63cdd6618228fb51d10..07c2c8456e248cc35ec7f65d1dd8f19f64d007ab 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);
« no previous file with comments | « fuzz/FilterFuzz.cpp ('k') | fuzz/fuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698