FreeBSD kernel libkern code
random.c File Reference
#include <sys/cdefs.h>
#include <sys/libkern.h>
Include dependency graph for random.c:

Go to the source code of this file.

Macros

#define NSHUFF   50 /* to drop some "seed -> 1st value" linearity */
 

Functions

 __FBSDID ("$BSDSUniX$")
 
void srandom (u_long seed)
 
u_long random ()
 

Variables

static u_long randseed = 937186357
 

Macro Definition Documentation

#define NSHUFF   50 /* to drop some "seed -> 1st value" linearity */

Definition at line 37 of file random.c.

Referenced by srandom().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
u_long random ( )

Definition at line 58 of file random.c.

References randseed.

Referenced by srandom().

Here is the caller graph for this function:

void srandom ( u_long  seed)

Definition at line 42 of file random.c.

References NSHUFF, random(), and randseed.

Here is the call graph for this function:

Variable Documentation

u_long randseed = 937186357
static

Definition at line 39 of file random.c.

Referenced by random(), and srandom().