NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
random.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_UTIL_RANDOM_HPP
23 #define NDN_UTIL_RANDOM_HPP
24 
25 #include "../common.hpp"
26 
27 namespace ndn {
28 namespace random {
29 
35 uint32_t
37 
43 uint64_t
45 
55 uint32_t
57 
67 uint64_t
69 
70 } // namespace random
71 } // namespace ndn
72 
73 #endif // NDN_UTIL_RANDOM_HPP
Copyright (c) 2011-2015 Regents of the University of California.
uint64_t generateSecureWord64()
Generate a cryptographically secure random integer from the range [0, 2^64)
Definition: random.cpp:52
uint32_t generateWord32()
Generate a cryptographically non-secure random integer from the range [0, 2^32)
Definition: random.cpp:73
uint32_t generateSecureWord32()
Generate a cryptographically secure random integer from the range [0, 2^32)
Definition: random.cpp:46
uint64_t generateWord64()
Generate a cryptographically non-secure random integer from range [0, 2^64)
Definition: random.cpp:80