diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-03 08:44:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-03 08:44:07 +0200 |
commit | 5a6d4971e13157cc5f0de199de7f6d257070fc66 (patch) | |
tree | fa31241ac67c711a7a6ca25549025eaeeb90802b /core/math | |
parent | 8a1097a2243a9829d5d7e61ef10133f8096aa5e2 (diff) | |
parent | 2c6449c4fcd6273c92603736b5623825a72ba4eb (diff) |
Merge pull request #8973 from thomas-goerlich/8957_rand_range_bugfix
Fixed rand_range not returning correct random values on windows
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/math_funcs.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 6a5e12c3ce..ca960aabad 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -51,9 +51,7 @@ class Math { public: Math() {} // useless to instance - enum { - RANDOM_MAX = 4294967295L - }; + static const uint64_t RANDOM_MAX = 4294967295; static _ALWAYS_INLINE_ double sin(double p_x) { return ::sin(p_x); } static _ALWAYS_INLINE_ float sin(float p_x) { return ::sinf(p_x); } |