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:
x random seed

Definition at line 15 of file rand.c.

References randx.


Variable Documentation

unsigned long randx = 1 [static]

Definition at line 9 of file rand.c.

Referenced by rand(), and srand().


Generated on Thu Oct 9 22:34:50 2008 for xinu by  doxygen 1.5.5