summaryrefslogtreecommitdiff
path: root/core/math/random_pcg.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-20 09:25:21 +0100
committerGitHub <noreply@github.com>2019-01-20 09:25:21 +0100
commitf0035b7cc78392938c5c163e961ff4604cb10c1a (patch)
tree09e3d85d725b04963b72d3585812253ac9015b40 /core/math/random_pcg.h
parent35728e41ba21da931cac5a1c15b52f06b28af353 (diff)
parentdb6be7b59ffaf7b98bf6d438a335ad1c8d98cec2 (diff)
Merge pull request #25150 from eska014/html5-warning
Fix HTML5 build warning
Diffstat (limited to 'core/math/random_pcg.h')
-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 d594d16b98..ef69bf7120 100644
--- a/core/math/random_pcg.h
+++ b/core/math/random_pcg.h
@@ -39,9 +39,9 @@ class RandomPCG {
pcg32_random_t pcg;
public:
- static const uint64_t DEFAULT_SEED = 12047754176567800795ULL;
+ static const uint64_t DEFAULT_SEED = 12047754176567800795U;
static const uint64_t DEFAULT_INC = PCG_DEFAULT_INC_64;
- static const uint64_t RANDOM_MAX = 4294967295;
+ static const uint64_t RANDOM_MAX = 0xFFFFFFFF;
RandomPCG(uint64_t seed = DEFAULT_SEED, uint64_t inc = PCG_DEFAULT_INC_64);