This is an archive of the discontinued LLVM Phabricator instance.

Add uniform distribution to RNG
Needs RevisionPublic

Authored by rinon on Feb 18 2015, 6:03 PM.

Details

Reviewers
joerg
jfb
Summary

A cross-platform stable RNG with a uniform distribution in a given range is needed by D6983. std::uniform_int_distribution is unfortunately not identical across libraries, so we need our own.

Diff Detail

Event Timeline

rinon updated this revision to Diff 20248.Feb 18 2015, 6:03 PM
rinon retitled this revision from to Add uniform distribution to RNG.
rinon updated this object.
rinon edited the test plan for this revision. (Show Details)
rinon added reviewers: jfb, joerg.
rinon added subscribers: perl, ahomescu, Unknown Object (MLST).
jfb edited edge metadata.Feb 20 2015, 8:51 AM

We can go with @joerg's proposal, but we would need a unit test for this IMO.

jfb requested changes to this revision.May 7 2018, 10:17 PM

Is there interest in moving program diversification efforts forward, or should we close this work and rely on others to take it on?

This revision now requires changes to proceed.May 7 2018, 10:17 PM
rinon added a comment.May 9 2018, 2:30 PM

Is there anyone using the RNG infrastructure downstream? If we close the other compile-time diversity patchsets, it might make sense to remove the RNG interface until such time as it is needed again.

jfb added a comment.May 10 2018, 1:30 PM

Is there anyone using the RNG infrastructure downstream? If we close the other compile-time diversity patchsets, it might make sense to remove the RNG interface until such time as it is needed again.

Agreed.