diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-13 13:26:27 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-13 13:26:27 -0400 |
| commit | 3e49337d9a773a5d805a908bc093b5d72985d8d9 (patch) | |
| tree | dd8bf524287442c1c3a30f9390d712b77c0e53d0 /node/Multicaster.hpp | |
| parent | c6dd5b239ff30a192c5bc6e784fd5d4b3085646d (diff) | |
| download | infinitytier-3e49337d9a773a5d805a908bc093b5d72985d8d9.tar.gz infinitytier-3e49337d9a773a5d805a908bc093b5d72985d8d9.zip | |
Add a fast non-cryptographic PRNG.
Diffstat (limited to 'node/Multicaster.hpp')
| -rw-r--r-- | node/Multicaster.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index aa3bcb16..42c92aab 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -50,6 +50,7 @@ #include "SharedPtr.hpp" #include "BloomFilter.hpp" #include "Identity.hpp" +#include "CMWC4096.hpp" // Maximum sample size to pick during choice of multicast propagation peers #define ZT_MULTICAST_PICK_MAX_SAMPLE_SIZE (ZT_MULTICAST_PROPAGATION_BREADTH * 8) @@ -211,6 +212,7 @@ public: */ template<typename T,typename P> inline unsigned int pickNextPropagationPeers( + CMWC4096 &prng, T &topology, uint64_t nwid, const MulticastGroup &mg, |
