NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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 
51 void
52 generateSecureBytes(uint8_t* bytes, size_t size);
53 
61 uint32_t
63 
71 uint64_t
73 
74 } // namespace random
75 } // namespace ndn
76 
77 #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:39
uint32_t generateWord32()
Generate a non-cryptographically-secure random integer in the range [0, 2^32)
Definition: random.cpp:63
uint32_t generateSecureWord32()
Generate a cryptographically secure random integer from the range [0, 2^32)
Definition: random.cpp:31
uint64_t generateWord64()
Generate a non-cryptographically-secure random integer in the range [0, 2^64)
Definition: random.cpp:70
void generateSecureBytes(uint8_t *bytes, size_t size)
Fill bytes of size with cryptographically secure random bytes.
Definition: random.cpp:47