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 dht-chord example now uses the new module
[simgrid.git]
/
examples
/
s4u
/
dht-chord
/
s4u-dht-chord.hpp
diff --git
a/examples/s4u/dht-chord/s4u-dht-chord.hpp
b/examples/s4u/dht-chord/s4u-dht-chord.hpp
index
81821cf
..
eea1f2f
100644
(file)
--- a/
examples/s4u/dht-chord/s4u-dht-chord.hpp
+++ b/
examples/s4u/dht-chord/s4u-dht-chord.hpp
@@
-6,8
+6,8
@@
#ifndef S4U_CHORD_HPP
#define S4U_CHORD_HPP
#include "simgrid/s4u.hpp"
#ifndef S4U_CHORD_HPP
#define S4U_CHORD_HPP
#include "simgrid/s4u.hpp"
-#include <random>
#include <string>
#include <string>
+#include <xbt/random.hpp>
#include <xbt/str.h>
constexpr double MAX_SIMULATION_TIME = 1000;
#include <xbt/str.h>
constexpr double MAX_SIMULATION_TIME = 1000;
@@
-21,8
+21,6
@@
extern int nb_bits;
extern int nb_keys;
extern int timeout;
extern int nb_keys;
extern int timeout;
-extern std::mt19937 generator;
-
/* Types of tasks exchanged between nodes. */
enum e_message_type_t {
FIND_SUCCESSOR,
/* Types of tasks exchanged between nodes. */
enum e_message_type_t {
FIND_SUCCESSOR,