[PATCH] D16419: Use std::piecewise_constant_distribution instead of ad-hoc binary search.
Ivan Krasin via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 14:25:47 PST 2016
krasin added inline comments.
================
Comment at: lib/Fuzzer/FuzzerInternal.h:287
@@ -282,2 +286,3 @@
+ std::piecewise_constant_distribution<double> CorpusDistribution;
UserSuppliedFuzzer &USF;
----------------
Done, but I have made an assumption about the max value of Rand(). I imply it's RAND_MAX.
If that could be not the case, the implementation is broken. Please, complain loudly, if so.
http://reviews.llvm.org/D16419
More information about the llvm-commits
mailing list