From 395add805d6c3d6855a1e2ab2c2bb7b85598e732 Mon Sep 17 00:00:00 2001
From: afederici <ajf5@illinois.edu>
Date: Sat, 21 Nov 2020 17:04:41 -0600
Subject: [PATCH] bug fix

---
 Wc           | Bin 191080 -> 191080 bytes
 src/Node.cpp |   1 +
 2 files changed, 1 insertion(+)

diff --git a/Wc b/Wc
index a0d8b25729f6c87be617338e1b4f0ff042a8d4f6..81f82455594ca26dafbc210e848ade94195f75be 100755
GIT binary patch
delta 74
zcmV-Q0JZ<<)C=g;3xKo%P<a9dowrhX0nRo82c5SfumSzG4PrTBIAtzx0AFokX>ON&
gYyvX3US<L_JP2WBH8VJ7E^n6}@Bvo0@1g>EM?<I^`Tzg`

delta 74
zcmV-Q0JZ<<)C=g;3xKo%P<aB4nzvGU0nRo8j+(b3umSzG4Q6ICGC3}90AFokX>ON&
gYyvX3US<L_JP2iGHe)hlE^n6}@Bvo0@1g>EM|y4?{r~^~

diff --git a/src/Node.cpp b/src/Node.cpp
index 9f377a9..9718503 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
-- 
GitLab