summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-01-23 10:36:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-01-23 10:36:36 +0100
commita0581cca1f7c8e5a1bd9b14d5b09861bbf69c674 (patch)
tree61f581906d482b8455e29055bd5094f74eac4213
parent2a45b298c18cf68a629a36179b1fd6136546ee01 (diff)
Revert "Revert "Update random_pcg.h""
This reverts commit 6f704c338aa7448a65ced554804ae568063f35eb. Sorry about this, this was a test and not meant to be pushed to master. :/
-rw-r--r--core/math/random_pcg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h
index 7ec8b47f90..ef69bf7120 100644
--- a/core/math/random_pcg.h
+++ b/core/math/random_pcg.h
@@ -50,8 +50,8 @@ public:
void randomize();
_FORCE_INLINE_ uint32_t rand() { return pcg32_random_r(&pcg); }
- _FORCE_INLINE_ double randf() { return (double)rand() / (double)RANDOM_MAX; }
- _FORCE_INLINE_ float randd() { return (float)rand() / (float)RANDOM_MAX; }
+ _FORCE_INLINE_ double randd() { return (double)rand() / (double)RANDOM_MAX; }
+ _FORCE_INLINE_ float randf() { return (float)rand() / (float)RANDOM_MAX; }
double random(double from, double to);
float random(float from, float to);