faif
|
the singleton, synchronized proxy to boost::Random More...
#include <Random.hpp>
Public Member Functions | |
boost::mutex & | getAccess () |
boost::mt19937 & | getRng () |
Static Public Member Functions | |
static RandomSingleton & | getInstance () |
the singleton, synchronized proxy to boost::Random
macros defined in stdandard library, but here are defined again, because of Visual Studio incompatibility with standard library. VC defines macro min and max in windows.h
|
inlinestatic |
the sileton getInstance method. Not using double-check pattern, because it is assumed, that random generator is initialized in single thread