random.hpp File Reference

Declares the global pseudorandom number generator (PRNG) for NFD. More...

#include <random>
+ Include dependency graph for random.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nfd
 Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents, Colorado State University, University Pierre & Marie Curie, Sorbonne University, Washington University in St.
 

Functions

std::mt19937 & nfd::getGlobalRng ()
 

Detailed Description

Declares the global pseudorandom number generator (PRNG) for NFD.

All random numbers generated by NFD should use this global generator, so that it can be properly seeded when necessary.

Warning
This PRNG is not suitable for security purposes; security-critical code must use a cryptographically secure PRNG, such as that provided by OpenSSL.

Definition in file random.hpp.