include/beecrypt/mtprng.h File Reference

Mersenne Twister pseudo-random number generator, headers. More...

#include "beecrypt/beecrypt.h"

Include dependency graph for mtprng.h:

Go to the source code of this file.

Data Structures

struct  mtprngParam

Defines

#define N   624
#define M   397
#define K   0x9908B0DFU

Functions

BEECRYPTAPI int mtprngSetup (mtprngParam *mp)
BEECRYPTAPI int mtprngSeed (mtprngParam *mp, const byte *data, size_t size)
BEECRYPTAPI int mtprngNext (mtprngParam *mp, byte *data, size_t size)
BEECRYPTAPI int mtprngCleanup (mtprngParam *mp)

Variables

BEECRYPTAPI const randomGenerator mtprng


Detailed Description

Mersenne Twister pseudo-random number generator, headers.

Author:
Bob Deblier <bob.deblier@telenet.be>

Define Documentation

#define K   0x9908B0DFU

#define M   397

#define N   624


Function Documentation

BEECRYPTAPI int mtprngCleanup ( mtprngParam mp  ) 

BEECRYPTAPI int mtprngNext ( mtprngParam mp,
byte data,
size_t  size 
)

BEECRYPTAPI int mtprngSeed ( mtprngParam mp,
const byte data,
size_t  size 
)

BEECRYPTAPI int mtprngSetup ( mtprngParam mp  ) 


Variable Documentation

BEECRYPTAPI const randomGenerator mtprng


Generated on Fri Jun 19 13:38:57 2009 for BeeCrypt by  doxygen 1.5.8