27 #include <boost/thread/tss.hpp>
31 static boost::thread_specific_ptr<boost::random::mt19937>
g_rng;
33 boost::random::mt19937&
36 if (g_rng.get() ==
nullptr) {
37 g_rng.reset(
new boost::random::mt19937());
static boost::thread_specific_ptr< boost::random::mt19937 > g_rng
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::random::mt19937 & getGlobalRng()