Problem 1549

Summary: CLHEP::HepRandom::setTheSeed(myseed) has no effect
Product: Geant4 Reporter: Sebastian Heil <sheil>
Component: runAssignee: asai
Status: CLOSED INVALID    
Severity: normal    
Priority: P5    
Version: 10.0   
Hardware: All   
OS: All   

Description Sebastian Heil 2013-12-20 01:46:10 CET
Hi,

in the previous version, calling

G4long myseed = time(NULL);
CLHEP::HepRandom::setTheSeed(myseed);

in my main() did the trick to get independent runs.
Now in version 10 it seems to have no effect.
Since I can't find any hint that there has been a change to that part, I assume this is not working as intended.

Best regards,
Sebastian
Comment 1 asai 2013-12-20 02:58:22 CET
Please refer to the migration guide.
You should not directly use CLHEP::Random anymore.
Comment 2 Sebastian Heil 2013-12-20 12:44:20 CET
No idea how I could have missed this part multiple times. It's working now.
Thanks very much.