From d182f2207624776d4d1b87662436663f81b00dc4 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 21 Oct 2019 15:34:11 +0200 Subject: [PATCH] sonar: kill commented code --- examples/s4u/dht-chord/s4u-dht-chord-node.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/s4u/dht-chord/s4u-dht-chord-node.cpp b/examples/s4u/dht-chord/s4u-dht-chord-node.cpp index 8d9640f064..1fa0c39b06 100644 --- a/examples/s4u/dht-chord/s4u-dht-chord-node.cpp +++ b/examples/s4u/dht-chord/s4u-dht-chord-node.cpp @@ -134,9 +134,7 @@ void Node::notifyAndQuit() void Node::randomLookup() { int res = id_; - // std::uniform_int_distribution dist(0, nb_bits - 1); - // int random_index = dist(generator); - int random_index = generator() % nb_bits; // ensure reproducibility across platforms + int random_index = generator() % nb_bits; int random_id = fingers_[random_index]; XBT_DEBUG("Making a lookup request for id %d", random_id); if (random_id != id_) -- 2.20.1