BeeCrypt  4.2.1
Data Structures | Macros | Functions | Variables
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
 

Macros

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

Functions

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

Variables

const randomGenerator mtprng
 

Detailed Description

Mersenne Twister pseudo-random number generator, headers.

Author
Bob Deblier bob.d.nosp@m.ebli.nosp@m.er@te.nosp@m.lene.nosp@m.t.be

Macro Definition Documentation

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

Function Documentation

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

Variable Documentation

const randomGenerator mtprng