IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 39fc2629 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

made distribution a member variable

parent 162cbfaf
No related branches found
No related tags found
1 merge request!116Some improvements here and there
......@@ -12,9 +12,6 @@
namespace corsika::process::pythia {
double Random::flat() {
std::uniform_real_distribution<double> dist;
return dist(fRNG);
}
double Random::flat() { return fDist(fRNG); }
} // namespace corsika::process::pythia
......@@ -23,6 +23,7 @@ namespace corsika::process {
double flat();
private:
std::uniform_real_distribution<double> fDist;
corsika::random::RNG& fRNG =
corsika::random::RNGManager::GetInstance().GetRandomStream("pythia");
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment