diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-22 18:01:10 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-23 10:30:18 +0100 |
commit | 6f704c338aa7448a65ced554804ae568063f35eb (patch) | |
tree | fd695773a8baeec86ec76ae3d0221b95bfba9f75 /core/math | |
parent | 4f4e46edd539b0c26a6b086aa19c303b10de66b1 (diff) |
Revert "Update random_pcg.h"
This reverts commit 64e584a97e0505cec592d3c98a2899ba8426f35a.
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/random_pcg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h index ef69bf7120..7ec8b47f90 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 randd() { return (double)rand() / (double)RANDOM_MAX; } - _FORCE_INLINE_ float randf() { return (float)rand() / (float)RANDOM_MAX; } + _FORCE_INLINE_ double randf() { return (double)rand() / (double)RANDOM_MAX; } + _FORCE_INLINE_ float randd() { return (float)rand() / (float)RANDOM_MAX; } double random(double from, double to); float random(float from, float to); |