Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[examples/s4u-app-bittorrent] Use a different RNG for each node.
[simgrid.git] / examples / s4u / app-bittorrent / s4u-peer.hpp
index 9b912bb..0175e26 100644 (file)
@@ -31,6 +31,7 @@ public:
 class Peer {
   int id;
   double deadline;
+  simgrid::xbt::random::XbtRandom random;
   simgrid::s4u::Mailbox* mailbox_;
   std::unordered_map<int, Connection> connected_peers;
   std::set<Connection*> active_peers; // active peers list