diff --git a/Wc b/Wc index a0d8b25729f6c87be617338e1b4f0ff042a8d4f6..81f82455594ca26dafbc210e848ade94195f75be 100755 Binary files a/Wc and b/Wc differ diff --git a/src/Node.cpp b/src/Node.cpp index 9f377a9bd03924270635e1afc33e109fe21e3910..9718503220953e755211b0933550ba519a1d0e38 100644 --- a/src/Node.cpp +++ b/src/Node.cpp @@ -861,6 +861,7 @@ void Node::handleTcpMessage() while (start < lines){ s = file + "::" + to_string(start); id = mapleRing->locateClosestNode(s); + srand(time(NULL)); vector<int> temp = randItems(1, fileList[file]); string sender = hashRing->getValue(temp[0]); //because files are part of sdfs anyone can be the sender string processor = mapleRing->getValue(id); //processor is a maple worker