This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Use std::discrete_distribution for input selection.
ClosedPublic

Authored by morehouse on Aug 6 2018, 12:54 PM.

Details

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.

Diff Detail

Event Timeline

morehouse created this revision.Aug 6 2018, 12:54 PM
kcc accepted this revision.Aug 16 2018, 3:31 PM

LGTM

This revision is now accepted and ready to land.Aug 16 2018, 3:31 PM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptAug 16 2018, 5:14 PM