Fixed weird fmod bug I guess

This commit is contained in:
2023-04-05 22:13:24 -07:00
parent b5707ed888
commit 54d21397e1
8 changed files with 16 additions and 12 deletions

View File

@ -44,8 +44,7 @@ namespace Dawn {
}
static inline float_t randRange(float_t min, float_t max) {
float_t n = randomGenerate<float_t>();
return mathMod(n, (max - min)) + min;
return mathMod(randomGenerate<float_t>(), (max - min)) + min;
}
static inline glm::vec2 randRange(glm::vec2 min, glm::vec2 max) {