NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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
36
generateSecureWord32
();
37
43
uint64_t
44
generateSecureWord64
();
45
51
void
52
generateSecureBytes
(uint8_t* bytes,
size_t
size);
53
61
uint32_t
62
generateWord32
();
63
71
uint64_t
72
generateWord64
();
73
74
}
// namespace random
75
}
// namespace ndn
76
77
#endif // NDN_UTIL_RANDOM_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::random::generateSecureWord64
uint64_t generateSecureWord64()
Generate a cryptographically secure random integer from the range [0, 2^64)
Definition:
random.cpp:39
ndn::random::generateWord32
uint32_t generateWord32()
Generate a non-cryptographically-secure random integer in the range [0, 2^32)
Definition:
random.cpp:63
ndn::random::generateSecureWord32
uint32_t generateSecureWord32()
Generate a cryptographically secure random integer from the range [0, 2^32)
Definition:
random.cpp:31
ndn::random::generateWord64
uint64_t generateWord64()
Generate a non-cryptographically-secure random integer in the range [0, 2^64)
Definition:
random.cpp:70
ndn::random::generateSecureBytes
void generateSecureBytes(uint8_t *bytes, size_t size)
Fill bytes of size with cryptographically secure random bytes.
Definition:
random.cpp:47
ndnSIM
ndn-cxx
src
util
random.hpp
Generated on Sun Feb 25 2018 13:27:05 for ndnSIM by
1.8.14