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
Create a new random number generator
Destory it
void cppcms::urandom_device::generate | ( | void * | ptr, |
unsigned | n | ||
) |
Fill a buffer pointer by ptr of n bytes with random numbers