summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-16 22:05:23 +0100
committerGitHub <noreply@github.com>2019-02-16 22:05:23 +0100
commit44d24e8b78e73448f586ef8e9138d3e15d2ab7e4 (patch)
tree16c74ef6ffe4afb66ce65d123ff4b4435dbca390 /core
parent1f9c54bd55a914c8126e4c9954ad648cdeddacb1 (diff)
parent3b6d05db3e100c53bf494a70550d548fd29d955b (diff)
Merge pull request #25952 from pbrunet/fix/rand
Fix typo for randd and randf
Diffstat (limited to 'core')
-rw-r--r--core/math/math_funcs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h
index ea0bfd88cc..629002ced6 100644
--- a/core/math/math_funcs.h
+++ b/core/math/math_funcs.h
@@ -242,8 +242,8 @@ public:
static void randomize();
static uint32_t rand_from_seed(uint64_t *seed);
static uint32_t rand();
- static _ALWAYS_INLINE_ double randf() { return (double)rand() / (double)Math::RANDOM_MAX; }
- static _ALWAYS_INLINE_ float randd() { return (float)rand() / (float)Math::RANDOM_MAX; }
+ static _ALWAYS_INLINE_ double randd() { return (double)rand() / (double)Math::RANDOM_MAX; }
+ static _ALWAYS_INLINE_ float randf() { return (float)rand() / (float)Math::RANDOM_MAX; }
static double random(double from, double to);
static float random(float from, float to);