summaryrefslogtreecommitdiff
path: root/src/SimpleRandomizer.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-17 17:30:36 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-17 17:30:36 +0900
commit9b41970134706f598ede204502bbd196eeedb26c (patch)
treea57f0ef2c34f62e5c26e037870f8af666f8f0035 /src/SimpleRandomizer.h
parent0282899bfa41e49caebde19432b53570b14259c9 (diff)
Don't use std::random_device directly as suggested by document
See http://en.cppreference.com/w/cpp/numeric/random/random_device
Diffstat (limited to 'src/SimpleRandomizer.h')
-rw-r--r--src/SimpleRandomizer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SimpleRandomizer.h b/src/SimpleRandomizer.h
index 879b2a06..7440dd36 100644
--- a/src/SimpleRandomizer.h
+++ b/src/SimpleRandomizer.h
@@ -55,11 +55,11 @@ private:
#ifdef __MINGW32__
HCRYPTPROV provider_;
#else
- std::random_device dev_;
+ std::mt19937 gen_;
#endif // ! __MINGW32__
public:
- typedef std::random_device::result_type result_type;
+ typedef std::mt19937::result_type result_type;
static const std::unique_ptr<SimpleRandomizer>& getInstance();