diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-01-08 09:04:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 09:04:58 +0100 |
commit | d23bce3ef2e8aabfa8bc81cd6995c731d4eb5560 (patch) | |
tree | f78596d101ca514b898bedd1633e26216c3438a8 /core/math/random_pcg.h | |
parent | f7de2c0cb3793bd289b8465bcc9af54157a54e91 (diff) | |
parent | 64e584a97e0505cec592d3c98a2899ba8426f35a (diff) |
Merge pull request #24828 from Calamander/patch-1
RandomPCG randf/randd functions typos fix
Diffstat (limited to 'core/math/random_pcg.h')
-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 91340a568e..d594d16b98 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); |