Fix a compile error

This commit is contained in:
LightCat 2019-01-05 13:18:43 +02:00 committed by GitHub
parent 15d5821af6
commit 88cce2c9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);