Skip to content
Snippets Groups Projects
Unverified Commit c2a8323a authored by Giovanni's avatar Giovanni Committed by GitHub
Browse files

Merge pull request #494 from plumed/fix-493

Fixes #493
parents ead646ca a4e98e60
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,7 @@ Random::Random(const std::string & name): ...@@ -51,6 +51,7 @@ Random::Random(const std::string & name):
} }
void Random::setSeed(int idum_) { void Random::setSeed(int idum_) {
if(idum_>0) idum_=-idum_;
idum=idum_; idum=idum_;
incPrec=false; incPrec=false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment