[libFuzzer] Use std::discrete_distribution for input selection.
authorMatt Morehouse <mascasa@google.com>
Fri, 17 Aug 2018 00:13:22 +0000 (00:13 +0000)
committerMatt Morehouse <mascasa@google.com>
Fri, 17 Aug 2018 00:13:22 +0000 (00:13 +0000)
commit0094d31f5b51691994f38c5de85c4a962fb75b61
tree98823a1516835ee47242e3841f515b77c97d2279
parenta93e7261708d200924c530caaa00c252bfa25a15
[libFuzzer] Use std::discrete_distribution for input selection.

Summary:
Since we're casting from double to size_t during input selection, we
really want a discrete distribution over size_t rather than a piecewise
distribution over doubles.

Reviewers: kcc

Reviewed By: kcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D50356

llvm-svn: 339973
compiler-rt/lib/fuzzer/FuzzerCorpus.h