Magic_Game/core/tools/Random.cpp

9 lines
186 B
C++

#include "..\e2dtool.h"
std::default_random_engine &e2d::Random::GetEngine()
{
static std::random_device device;
static std::default_random_engine engine(device());
return engine;
}