X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ed37babb2fa9097abe82df299c0aa259ed84d5a..c312320c2e43da49b536c51a9d19b6ad6d66e489:/src/mc/transition/TransitionRandom.hpp diff --git a/src/mc/transition/TransitionRandom.hpp b/src/mc/transition/TransitionRandom.hpp index b62e8c4b66..374d69def4 100644 --- a/src/mc/transition/TransitionRandom.hpp +++ b/src/mc/transition/TransitionRandom.hpp @@ -17,7 +17,13 @@ class RandomTransition : public Transition { public: std::string to_string(bool verbose) const override; RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream); - bool depends(const Transition* other) const override { return false; } // Independent with any other transition + bool depends(const Transition* other) const override + { + if (other->type_ < type_) + return other->depends(this); + + return aid_ == other->aid_; + } // Independent with any other transition }; } // namespace simgrid::mc