Magic_Game/core/Tool/Random.cpp

9 lines
188 B
C++
Raw Normal View History

2018-04-21 21:24:46 +08:00
#include "..\e2dtool.h"
std::default_random_engine &e2d::Random::__getEngine()
{
static std::random_device device;
static std::default_random_engine engine(device());
return engine;
}