CppCMS
|
High entropy random number generator. More...
#include <cppcms/urandom.h>
Public Member Functions | |
urandom_device () | |
~urandom_device () | |
void | generate (void *ptr, unsigned n) |
High entropy random number generator.
This is cryptographic random number generator that uses /dev/urandom on POSIX platforms and CryptoAPI's CryptGenRandom function under MS Windows
cppcms::urandom_device::urandom_device | ( | ) |
Create a new random number generator
cppcms::urandom_device::~urandom_device | ( | ) |
Destory it
void cppcms::urandom_device::generate | ( | void * | ptr, |
unsigned | n | ||
) |
Fill a buffer pointer by ptr of n bytes with random numbers