A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The bittorrent example now uses the new module
[simgrid.git]
/
examples
/
s4u
/
app-bittorrent
/
s4u-bittorrent.hpp
diff --git
a/examples/s4u/app-bittorrent/s4u-bittorrent.hpp
b/examples/s4u/app-bittorrent/s4u-bittorrent.hpp
index
06fabfa
..
126017a
100644
(file)
--- a/
examples/s4u/app-bittorrent/s4u-bittorrent.hpp
+++ b/
examples/s4u/app-bittorrent/s4u-bittorrent.hpp
@@
-7,8
+7,8
@@
#ifndef BITTORRENT_BITTORRENT_HPP_
#define BITTORRENT_BITTORRENT_HPP_
#ifndef BITTORRENT_BITTORRENT_HPP_
#define BITTORRENT_BITTORRENT_HPP_
-#include <random>
#include <simgrid/s4u.hpp>
#include <simgrid/s4u.hpp>
+#include <xbt/random.hpp>
constexpr char TRACKER_MAILBOX[] = "tracker_mailbox";
/** Max number of peers sent by the tracker to clients */
constexpr char TRACKER_MAILBOX[] = "tracker_mailbox";
/** Max number of peers sent by the tracker to clients */
@@
-77,6
+77,4
@@
public:
: type(type), peer_id(peer_id), return_mailbox(return_mailbox), piece(piece){};
};
: type(type), peer_id(peer_id), return_mailbox(return_mailbox), piece(piece){};
};
-extern std::default_random_engine generator;
-
#endif /* BITTORRENT_BITTORRENT_HPP_ */
#endif /* BITTORRENT_BITTORRENT_HPP_ */