Make RandomNumberGenerator compatible with <random>
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 11 Oct 2016 07:13:01 +0000 (07:13 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 11 Oct 2016 07:13:01 +0000 (07:13 +0000)
commitea8e9795a55970053e699ee58c91f481bbe20151
tree05319e5bdf1dff98b2b8cd083daa1e2b33f4a598
parent96bbd2394da3f97cf48c7a2bffd4e39f722e6b0e
Make RandomNumberGenerator compatible with <random>

LLVM's RandomNumberGenerator wasn't compatible with
the random distribution from <random>.

Fixes PR25105

Patch by: Serge Guelton <serge.guelton@telecom-bretagne.eu>

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

llvm-svn: 283854
llvm/include/llvm/Support/RandomNumberGenerator.h
llvm/lib/Support/RandomNumberGenerator.cpp
llvm/unittests/IR/ModuleTest.cpp