#include <random.h>
Static Public Member Functions | |
unsigned long | rand () throw (std::runtime_error) |
Produces a random unsigned long taken from /dev/urandom. |
Example usage
unsigned long key = Dv::Util::Random::rand();
Definition at line 21 of file random.h.
|
Produces a random unsigned long taken from /dev/urandom. An exception is thrown if anything goes wrong, e.g. the file /dev/urandom cannot be opened. Later extensions should automatically switch to another implementation if /dev/urandom is not available. |
dvutil-0.13.15 | [30 December, 2004] |