diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-07 12:53:59 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-07 12:53:59 +0100 |
| commit | 46f22621759d388f7cef4bf0d2ac03667a5d611e (patch) | |
| tree | b26cd49fe2552680eb16d9008695c8f56e757ded /node/node.cpp | |
| parent | 7e21069bea9e8e6276591eee98f22cb07d67392d (diff) | |
| download | cmix-46f22621759d388f7cef4bf0d2ac03667a5d611e.tar.gz cmix-46f22621759d388f7cef4bf0d2ac03667a5d611e.tar.bz2 cmix-46f22621759d388f7cef4bf0d2ac03667a5d611e.zip | |
prepares the api for sending and mixing messages in the realtime phase.
Diffstat (limited to 'node/node.cpp')
| -rw-r--r-- | node/node.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node/node.cpp b/node/node.cpp index fa9a721..b5c8506 100644 --- a/node/node.cpp +++ b/node/node.cpp @@ -135,6 +135,12 @@ void Node::start_precomputation() { exit(-1); } + int i = 0; + for(auto&& pair : clients) { + index_map[pair.first] = i++; + generate_random_message(&cmix_ctx, i); + } + if(initialize_mix_randomness(&cmix_ctx) != no_error) { exit(-1); } |
