diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-01 00:16:13 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-01 00:16:13 +0000 |
commit | 8ddeb66959f5a40192940260932636196ab8151f (patch) | |
tree | cc963ec4801866dd640b633b6ccc9fbd6315e3e9 /src | |
parent | 1eb18a52be9bdba1a5e0aac91d4b1f25c8e4b3f2 (diff) |
windows wants rand()
Diffstat (limited to 'src')
-rw-r--r-- | src/math/functions.cc | 4 |
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) |