summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-11-06 10:15:22 +0100
committerGitHub <noreply@github.com>2020-11-06 10:15:22 +0100
commitd79e57882b333b0e5ca47579cfe7bf3188bee274 (patch)
tree4fbdcaf5a656693bd249a364d0d2d046fcdfd4aa
parent1e5a782ce881dbdd8c6bce8452b9c5ed433ed9e6 (diff)
parent34ca426851255ca4c80cf3af0303cf0079559b02 (diff)
Merge pull request #43337 from Xrayez/math-unused-phi-define
Remove unused `PHI` define in math funcs
-rw-r--r--core/math/math_funcs.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/math/math_funcs.cpp b/core/math/math_funcs.cpp
index 1585c96b38..4154713a87 100644
--- a/core/math/math_funcs.cpp
+++ b/core/math/math_funcs.cpp
@@ -34,8 +34,6 @@
RandomPCG Math::default_rand(RandomPCG::DEFAULT_SEED, RandomPCG::DEFAULT_INC);
-#define PHI 0x9e3779b9
-
uint32_t Math::rand_from_seed(uint64_t *seed) {
RandomPCG rng = RandomPCG(*seed, RandomPCG::DEFAULT_INC);
uint32_t r = rng.rand();