60 G4cout <<
"### Run " << aRun->GetRunID() <<
" start." << G4endl;
62 G4RunManager::GetRunManager()->SetRandomNumberStore(
true);
63 G4RunManager::GetRunManager()->SetRandomNumberStoreDir(
"random/");
67 G4cout <<
"*******************" << G4endl;
68 G4cout <<
"*** AUTOSEED ON ***" << G4endl;
69 G4cout <<
"*******************" << G4endl;
71 time_t systime = time(
nullptr);
72 seeds[0] = (long) systime;
73 seeds[1] = (long) (systime*G4UniformRand());
74 G4Random::setTheSeeds(seeds);
75 G4Random::showEngineStatus();
77 G4Random::showEngineStatus();
82 std::ostringstream os;
83 os<<
"beginOfRun_"<<G4Threading::G4GetThreadId()<<
".rndm";
84 G4Random::saveEngineStatus(os.str().c_str());