summaryrefslogtreecommitdiff
path: root/src/libs/din
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/din')
-rw-r--r--src/libs/din/din.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/din/din.c b/src/libs/din/din.c
index 4290d41..b2c2823 100644
--- a/src/libs/din/din.c
+++ b/src/libs/din/din.c
@@ -18,7 +18,7 @@ typedef struct din_t {
/* return random number between -1 and +1 */
static inline float randf(unsigned *seed)
{
- return 2.f / RAND_MAX * rand_r(seed) - 1.f;
+ return 2.f / ((float)RAND_MAX) * rand_r(seed) - 1.f;
}
© All Rights Reserved