X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/43593083f5e507b563bddc7d8d9c6022a9d7fab4..d6a9ae11bd2ff9b0bf30bf84cbedfe0438a5051e:/include/xbt/random.hpp diff --git a/include/xbt/random.hpp b/include/xbt/random.hpp index 81572c78ff..7d4e4ef30b 100644 --- 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 */ - 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 */ - 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) @@ -127,12 +127,12 @@ void set_mersenne_seed(int); /** * @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. */ -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)