Skip to content

Commit

Permalink
Fix wrong behaviour when config::RNGSeed==0
Browse files Browse the repository at this point in the history
  • Loading branch information
pawREP committed Feb 8, 2020
1 parent b8c1322 commit 15f0e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RandomisationMan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void RandomisationMan::initializeRandomizers(const SSceneInitParameters* sip) {
auto seed = Config::RNGSeed;
if (seed == 0)
seed = std::random_device{}();
RNG::inst().seed(Config::RNGSeed);
RNG::inst().seed(seed);

auto scenario = Scenario::from_SceneInitParams(*sip);
Console::log("Loading Scenario: %s\n", scenario.string().c_str());
Expand Down

0 comments on commit 15f0e1f

Please sign in to comment.