ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
Loading...
Searching...
No Matches
random.hpp File Reference
#include "ndn-cxx/util/span.hpp"
#include <cstdint>
#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

namespace  ndn
 
namespace  ndn::random
 

Typedefs

using ndn::random::RandomNumberEngine = std::mt19937
 

Functions

void ndn::random::generateSecureBytes (span< uint8_t > buffer)
 Fill buffer with cryptographically secure random bytes.
 
uint32_t ndn::random::generateSecureWord32 ()
 Generate a cryptographically secure random integer in the range [0, 2^32).
 
uint64_t ndn::random::generateSecureWord64 ()
 Generate a cryptographically secure random integer in the range [0, 2^64).
 
uint32_t ndn::random::generateWord32 ()
 Generate a non-cryptographically-secure random integer in the range [0, 2^32).
 
uint64_t ndn::random::generateWord64 ()
 Generate a non-cryptographically-secure random integer in the range [0, 2^64).
 
RandomNumberEnginendn::random::getRandomNumberEngine ()
 Returns a reference to a thread-local instance of a properly seeded PRNG.