Fix a compile error
This commit is contained in:
parent
15d5821af6
commit
88cce2c9ce
@ -16,7 +16,7 @@ static std::string stolen_name;
|
|||||||
int getRng(int min, int max)
|
int getRng(int min, int max)
|
||||||
{
|
{
|
||||||
static std::random_device rd;
|
static std::random_device rd;
|
||||||
std::uniform_real_distribution<int> unif(min, max);
|
std::uniform_int_distribution<int> unif(min, max);
|
||||||
static std::mt19937 rand_engine(rd());
|
static std::mt19937 rand_engine(rd());
|
||||||
|
|
||||||
int x = unif(rand_engine);
|
int x = unif(rand_engine);
|
||||||
|
Reference in New Issue
Block a user