Problem 1699

Summary: The Ranecu engine produces the same results irrespective of seeds
Product: Geant4 Reporter: Padraig <padraig.looney>
Component: runAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED INVALID    
Severity: trivial    
Priority: P5    
Version: 10.0   
Hardware: Apple   
OS: Linux   

Description Padraig 2014-12-12 17:03:17 CET
If I call 

    G4Random::setTheEngine(new CLHEP::RanecuEngine());
    G4Random::setTheSeed(systime);

in my main method I get the same results even if the seeds are different. 

Using the standard engine I have the expected behaviour.
Comment 1 Gabriele Cosmo 2015-01-20 09:09:09 CET
RanecuEngine for SetTheSeed() uses a predefined table for setting the seed, i.e. the result of calling SetTheSeed(seed) is an index used to access the table computed module the size of the table... as result you may have the same index and therefore the same initial seeds.
You should a couple of seeds with SetTheSeeds() to properly initialise RanecuEngine.