1
0

Fixed grass spread, closes #1743

- Removed the salt parameter in cFastRandom functions, it wasn't doing
what we thought it was following the move to C++11
This commit is contained in:
Tiger Wang
2015-03-14 00:59:53 +00:00
parent 57d2a09c8c
commit e94886c140
5 changed files with 8 additions and 41 deletions

View File

@@ -105,18 +105,6 @@ int cFastRandom::NextInt(int a_Range)
int cFastRandom::NextInt(int a_Range, int a_Salt)
{
m_LinearRand.seed(a_Salt);
std::uniform_int_distribution<> distribution(0, a_Range - 1);
return distribution(m_LinearRand);
}
float cFastRandom::NextFloat(float a_Range)
{
std::uniform_real_distribution<float> distribution(0, a_Range);
@@ -128,18 +116,6 @@ float cFastRandom::NextFloat(float a_Range)
float cFastRandom::NextFloat(float a_Range, int a_Salt)
{
m_LinearRand.seed(a_Salt);
std::uniform_real_distribution<float> distribution(0, a_Range);
return distribution(m_LinearRand);
}
int cFastRandom::GenerateRandomInteger(int a_Begin, int a_End)
{
std::uniform_int_distribution<> distribution(a_Begin, a_End);