summaryrefslogtreecommitdiff
path: root/node/Node.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Node.hpp')
-rw-r--r--node/Node.hpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/node/Node.hpp b/node/Node.hpp
index 03bd7a8c..d25a619b 100644
--- a/node/Node.hpp
+++ b/node/Node.hpp
@@ -50,9 +50,6 @@
#define ZT_EXPECTING_REPLIES_BUCKET_MASK1 255
#define ZT_EXPECTING_REPLIES_BUCKET_MASK2 31
-// Size of PRNG stream buffer
-#define ZT_NODE_PRNG_BUF_SIZE 64
-
namespace ZeroTier {
class World;
@@ -312,13 +309,10 @@ private:
Mutex _backgroundTasksLock;
- unsigned int _prngStreamPtr;
- Salsa20 _prng;
- uint64_t _prngStream[ZT_NODE_PRNG_BUF_SIZE]; // repeatedly encrypted with _prng to yield a high-quality non-crypto PRNG stream
-
uint64_t _now;
uint64_t _lastPingCheck;
uint64_t _lastHousekeepingRun;
+ volatile uint64_t _prngState[2];
bool _online;
};