*
* \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 */