Doxyfile: Change web sync directory.
[paraslash.git] / para.h
diff --git a/para.h b/para.h
index 9f2c59a885aa2ee028de2056e23641575f9c8ad6..2d8d9cce390d5cb66fa7b3bea040210ff9426bb5 100644 (file)
--- a/para.h
+++ b/para.h
@@ -218,9 +218,9 @@ __printf_2_3 void para_log(int, const char*, ...);
  *
  * \return An integer between zero and \p max - 1, inclusively.
  */
-static inline int para_random(unsigned max)
+static inline long int para_random(unsigned max)
 {
-       return ((max + 0.0) * (rand() / (RAND_MAX + 1.0)));
+       return ((max + 0.0) * (random() / (RAND_MAX + 1.0)));
 }
 
 /** Round up x to a multiple of y */