diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-13 14:28:26 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-13 14:28:26 -0400 |
| commit | 97cbd98bc5bb99bd1363ba1ae87074afcef926a4 (patch) | |
| tree | 47471b826ca4880f831c200f614e5c87f6ee8c1e /node/Node.cpp | |
| parent | 3e49337d9a773a5d805a908bc093b5d72985d8d9 (diff) | |
| download | infinitytier-97cbd98bc5bb99bd1363ba1ae87074afcef926a4.tar.gz infinitytier-97cbd98bc5bb99bd1363ba1ae87074afcef926a4.zip | |
Compile fixes, integration of fast PRNG.
Diffstat (limited to 'node/Node.cpp')
| -rw-r--r-- | node/Node.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Node.cpp b/node/Node.cpp index 265b77e4..3b18d7ba 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -65,6 +65,7 @@ #include "MulticastGroup.hpp" #include "Mutex.hpp" #include "Multicaster.hpp" +#include "CMWC4096.hpp" #include "../version.h" @@ -120,6 +121,7 @@ Node::~Node() delete impl->renv.multicaster; delete impl->renv.demarc; delete impl->renv.nc; + delete impl->renv.prng; delete impl->renv.log; delete impl; @@ -153,6 +155,8 @@ Node::ReasonForTermination Node::run() TRACE("initializing..."); + _r->prng = new CMWC4096(); + if (!_r->configAuthority.fromString(_r->configAuthorityIdentityStr)) return impl->terminateBecause(Node::NODE_UNRECOVERABLE_ERROR,"configuration authority identity is not valid"); |
