This causes a failure on the following bot as well as our internal ones:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/23103
llvm-svn: 352747
#include <random>
namespace fuzzer {
-class Random : public std::minstd_rand {
+class Random : public std::mt19937 {
public:
- Random(unsigned int seed) : std::minstd_rand(seed) {}
- result_type operator()() { return this->std::minstd_rand::operator()(); }
+ Random(unsigned int seed) : std::mt19937(seed) {}
+ result_type operator()() { return this->std::mt19937::operator()(); }
size_t Rand() { return this->operator()(); }
size_t RandBool() { return Rand() % 2; }
size_t operator()(size_t n) { return n ? Rand() % n : 0; }