NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
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) 2011-2015 Regents of the University of California.
 

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.