From 0f9b9483ae215e9ba1714b634903d4b22ec00c58 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 3 Jan 2017 20:19:29 +0100 Subject: Force use of the same random number engine acros all compilers/platforms. --- src/random.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/random.h b/src/random.h index c7fd599..a18f5b6 100644 --- a/src/random.h +++ b/src/random.h @@ -52,7 +52,10 @@ public: T& choose(std::vector& vec); private: - std::default_random_engine generator; + // The std::default_random_engine of the gcc libstdc++ library is + // minstd_rand0, so make sure we use that all platforms regardless of which + // stdlib we link with. + std::minstd_rand0 generator; }; template -- cgit v1.2.3