Problem 1657 - seeds specified in /random/setSeeds ignored in MT mode
Summary: seeds specified in /random/setSeeds ignored in MT mode
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: 10.0
Hardware: All All
: P5 major
Assignee: Andrea Dotti
URL:
Depends on:
Blocks:
 
Reported: 2014-07-17 17:36 CEST by smueller
Modified: 2014-07-21 18:30 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description smueller 2014-07-17 17:36:51 CEST
Running in multi-threaded mode, seeds specified in "/random/setSeeds ..." are ignored, one gets always the same random number sequence (verified by Alberto Ribon).
Comment 1 Andrea Dotti 2014-07-21 18:30:12 CEST
Hello,
a fix has been provided in tag run-V10-00-17 and it will be included in the next patch release. 
For users that need this right now the fix can be implemented changing line 399 in file <g4source>/source/run/src/G4RunMessenger.cc. 
http://www-geant4.kek.jp/lxr/source/run/src/G4RunMessenger.cc#L399

The line, currently:
  CLHEP::HepRandom::setTheSeeds(seeds);

Should be changed to:
  G4Random::setTheSeeds(seeds);


Recompilation is needed.

Regards,
Andrea