From 46f22621759d388f7cef4bf0d2ac03667a5d611e Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 7 Nov 2016 12:53:59 +0100 Subject: prepares the api for sending and mixing messages in the realtime phase. --- node/node.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node/node.cpp') 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); } -- cgit v1.2.3-70-g09d2