rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
|
A implementation of srand and rand function. More...
Go to the source code of this file.
#define | RAND_MAX 2147483647 |
The maximum value of a random number. More... | |
void | srand (unsigned int seed) |
Sets the seed used by rand() to generate the pseudo-random sequence. More... | |
int | rand (void) |
Returns a pseudo-random integer in the range of 0 to RAND_MAX. More... | |
int | rand_r (unsigned int *seed) |
Returns a pseudo-random integer in the range of 0 to RAND_MAX. More... | |
A implementation of srand and rand function.
This implementation is directly taken from the glibc rand_r function implementation. http://sourceware.org/git/?p=glibc.git;a=blob;f=stdlib/rand_r.c;hb=HEAD
Definition in file rand.h.