CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
Random.hpp
1 /*
2  * (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 
9 #pragma once
10 
11 #include <corsika/framework/random/RNGManager.hpp>
12 #include <random>
13 
14 namespace qgsjetII {
15 
16  double rndm_interface() {
17  static corsika::default_prng_type& rng =
19  std::uniform_real_distribution<double> dist;
20  return dist(rng);
21  }
22 
23 } // namespace qgsjetII
prng_type & getRandomStream(string_type const &streamName)