Add a fast non-cryptographic PRNG.
This commit is contained in:
parent
c6dd5b239f
commit
3e49337d9a
10 changed files with 107 additions and 20 deletions
|
@ -31,6 +31,7 @@
|
|||
#include <string>
|
||||
#include "Identity.hpp"
|
||||
#include "Condition.hpp"
|
||||
#include "CMWC4096.hpp"
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
|
@ -77,6 +78,9 @@ public:
|
|||
// signal() to prematurely interrupt main loop wait
|
||||
Condition mainLoopWaitCondition;
|
||||
|
||||
// non-cryptographic fast PRNG
|
||||
CMWC4096 prng;
|
||||
|
||||
Identity configAuthority;
|
||||
Identity identity;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue