IAP GITLAB

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

made distribution a member variable

parent 1ce672a3
No related branches found
No related tags found
1 merge request!116Some improvements here and there
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
namespace corsika::process::pythia { namespace corsika::process::pythia {
double Random::flat() { double Random::flat() { return fDist(fRNG); }
std::uniform_real_distribution<double> dist;
return dist(fRNG);
}
} // namespace corsika::process::pythia } // namespace corsika::process::pythia
...@@ -23,6 +23,7 @@ namespace corsika::process { ...@@ -23,6 +23,7 @@ namespace corsika::process {
double flat(); double flat();
private: private:
std::uniform_real_distribution<double> fDist;
corsika::random::RNG& fRNG = corsika::random::RNG& fRNG =
corsika::random::RNGManager::GetInstance().GetRandomStream("pythia"); 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