Problem 1657

Summary: seeds specified in /random/setSeeds ignored in MT mode
Product: Geant4 Reporter: smueller <stefan.mueller>
Component: runAssignee: Andrea Dotti <andrea.dotti>
Status: RESOLVED FIXED    
Severity: major    
Priority: P5    
Version: 10.0   
Hardware: All   
OS: All   

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