26 #ifndef __RFLPC_RAND_H__
27 #define __RFLPC_RAND_H__
29 #ifdef RFLPC_CONFIG_ENABLE_RAND
41 #define RAND_MAX 2147483647
46 extern void srand(
unsigned int seed);
51 extern int rand(
void);
57 extern int rand_r(
unsigned int *seed);
void srand(unsigned int seed)
Sets the seed used by rand() to generate the pseudo-random sequence.
int rand_r(unsigned int *seed)
Returns a pseudo-random integer in the range of 0 to RAND_MAX.
int rand(void)
Returns a pseudo-random integer in the range of 0 to RAND_MAX.