22 #ifndef NDN_UTIL_RANDOM_HPP 23 #define NDN_UTIL_RANDOM_HPP 90 #endif // NDN_UTIL_RANDOM_HPP
uint64_t generateSecureWord64()
Generate a cryptographically secure random integer from the range [0, 2^64)
std::mt19937 RandomNumberEngine
uint32_t generateWord32()
Generate a non-cryptographically-secure random integer in the range [0, 2^32)
uint32_t generateSecureWord32()
Generate a cryptographically secure random integer from the range [0, 2^32)
RandomNumberEngine & getRandomNumberEngine()
Returns a reference to a thread-local instance of a properly seeded PRNG.
import common constructs for ndn-cxx library internal use
uint64_t generateWord64()
Generate a non-cryptographically-secure random integer in the range [0, 2^64)
void generateSecureBytes(uint8_t *bytes, size_t size)
Fill bytes of size with cryptographically secure random bytes.