Skip to content

Commit

Permalink
Let G4Random pick random engine
Browse files Browse the repository at this point in the history
This fixes issue #52. Test now succeeds as expected.
  • Loading branch information
wdconinc committed Dec 15, 2017
1 parent 683c75d commit f5f7165
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion remoll.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ int main(int argc, char** argv) {
#endif

// Choose the Random engine
G4Random::setTheEngine(new CLHEP::RanecuEngine());

This comment has been minimized.

Copy link
@cameronc137

cameronc137 Dec 15, 2017

Contributor

Nota bene: this is the line that was forcing identical seeds for all runs.

This comment has been minimized.

Copy link
@wdconinc

wdconinc Dec 15, 2017

Author Member

Kinda. This line initialized a random number generator that did not respond to the next line, setTheSeed(seed). the CLHEP namespace should have given it away...

G4Random::setTheSeed(seed);
remollRun::UpdateSeed();

Expand Down

0 comments on commit f5f7165

Please sign in to comment.