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
Now returns true if the file could be opened
[simgrid.git]
/
src
/
xbt
/
random.cpp
diff --git
a/src/xbt/random.cpp
b/src/xbt/random.cpp
index
004418e
..
539340b
100644
(file)
--- a/
src/xbt/random.cpp
+++ b/
src/xbt/random.cpp
@@
-36,7
+36,7
@@
bool Random::write_state(std::string filename)
std::ofstream file(filename);
if (file) {
file << mt19937_gen;
- return
fals
e;
+ return
tru
e;
} else {
XBT_WARN("Could not open %s and thus not read the RNG state.", filename.c_str());
return false;