From 3e49337d9a773a5d805a908bc093b5d72985d8d9 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 13 Jul 2013 13:26:27 -0400 Subject: Add a fast non-cryptographic PRNG. --- node/Multicaster.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node/Multicaster.hpp') 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 inline unsigned int pickNextPropagationPeers( + CMWC4096 &prng, T &topology, uint64_t nwid, const MulticastGroup &mg, -- cgit v1.2.3