Magic_Game/core/Tool/Random.cpp

9 lines
186 B
C++
Raw Normal View History

2018-09-05 13:33:39 +08:00
#include "..\e2dtool.h"
2018-09-04 22:42:34 +08:00
std::default_random_engine &e2d::Random::GetEngine()
{
static std::random_device device;
static std::default_random_engine engine(device());
return engine;
}