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
switched wifi model ns3 from the one using wifi links to a model using wifi zones...
[simgrid.git]
/
include
/
xbt
/
random.hpp
diff --git
a/include/xbt/random.hpp
b/include/xbt/random.hpp
index 81572c78ff9e6d3225f8b293e78d7a05bdd83af5..7d4e4ef30b14a746a12c0fb4157b9e2c4b831458 100644
(file)
--- a/
include/xbt/random.hpp
+++ b/
include/xbt/random.hpp
@@
-40,12
+40,12
@@
public:
/**
* @brief Read the state of the Mersenne-Twister RNG from a file
*/
/**
* @brief Read the state of the Mersenne-Twister RNG from a file
*/
- bool read_state(
std::string
filename);
+ bool read_state(
const std::string&
filename);
/**
* @brief Write the state of the Mersenne-Twister RNG to a file
*/
/**
* @brief Write the state of the Mersenne-Twister RNG to a file
*/
- bool write_state(
std::string filename)
;
+ bool write_state(
const std::string& filename) const
;
/**
* @brief Draws an integer number uniformly in range [min, max] (min and max included)
/**
* @brief Draws an integer number uniformly in range [min, max] (min and max included)
@@
-127,12
+127,12
@@
void set_mersenne_seed(int);
/**
* @brief Read the state of the Mersenne-Twister RNG from a file.
*/
/**
* @brief Read the state of the Mersenne-Twister RNG from a file.
*/
-bool read_mersenne_state(
std::string
filename);
+bool read_mersenne_state(
const std::string&
filename);
/**
* @brief Write the state of the Mersenne-Twister RNG to a file.
*/
/**
* @brief Write the state of the Mersenne-Twister RNG to a file.
*/
-bool write_mersenne_state(
std::string
filename);
+bool write_mersenne_state(
const std::string&
filename);
/**
* @brief Draws an integer number uniformly in range [min, max] (min and max included)
/**
* @brief Draws an integer number uniformly in range [min, max] (min and max included)