Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/functions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/functions.cc b/src/math/functions.cc
index 2942eb5..c4b832c 100644
--- a/src/math/functions.cc
+++ b/src/math/functions.cc
@@ -34,12 +34,12 @@ int max(int a, int b)
float randomf(const float max)
{
- return ((float) random() / (float) RAND_MAX) * max;
+ return ((float) rand() / (float) RAND_MAX) * max;
}
unsigned randomi(const unsigned int max)
{
- return ((unsigned int)(random() % max));
+ return ((unsigned int)(rand() % max));
}
float degrees180f(float angle)