ESAPI-C 1.0
The OWASP Enterprise Security API for C

chalkboard/random.c File Reference

Go to the source code of this file.

Defines

#define N   624
#define M   397
#define A   0x9908b0dfUL
#define U   0x80000000UL
#define L   0x7fffffffUL

Functions

void jsw_seed (unsigned long s)
unsigned long jsw_rand (void)

Variables

static unsigned long x [N]
static int next

Define Documentation

#define A   0x9908b0dfUL

Definition at line 15 of file random.c.

#define L   0x7fffffffUL

Definition at line 17 of file random.c.

#define M   397

Definition at line 14 of file random.c.

#define N   624

Definition at line 13 of file random.c.

#define U   0x80000000UL

Definition at line 16 of file random.c.


Function Documentation

unsigned long jsw_rand ( void  )

Definition at line 36 of file random.c.

void jsw_seed ( unsigned long  s)

Definition at line 22 of file random.c.


Variable Documentation

int next [static]

Definition at line 20 of file random.c.

unsigned long x[N] [static]

Definition at line 19 of file random.c.

 All Data Structures Files Functions Variables Typedefs Defines