summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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);