/** * File: prng.h * Author: Daniel Otte * Date: 23.07.2006 * License: GPL * Description: This file contains the declarations for the pseudo-random-number generator. **/ #ifndef PRNG_H_ #define PRNG_H_ #include /* * length in bits */ #define RANDOMBLOCK_SIZE 32 /* bytes */ void addEntropy(unsigned length, void* data); void getRandomBlock(uint32_t* b); /* this does some simple buffering */ uint8_t getRandomByte(void); void fillBlockRandom(void* block, unsigned length); #endif /*PRNG_H_*/