Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/lib/libxc/rand.c File Reference
Go to the source code of this file.
|
Functions |
void | srand (unsigned long x) |
unsigned long | rand (void) |
Variables |
static unsigned long | randx = 1 |
Detailed Description
srand, rand
- Id
- rand.c 221 2007-07-11 18:45:46Z mschul
Definition in file rand.c.
Function Documentation
unsigned long rand |
( |
void |
|
) |
|
Generates a random long.
- Returns:
- random long
Definition at line 24 of file rand.c.
References randx.
void srand |
( |
unsigned long |
x |
) |
|
Sets the random seed.
- Parameters:
-
Definition at line 15 of file rand.c.
References randx.
Variable Documentation
unsigned long randx = 1 [static] |