IAP GITLAB

Commit 8daaee1b authored by Anton Poctarev's avatar Anton Poctarev

added counter-based PRNG

parent 9a7a8ab5
Pipeline #3542 failed with stages
in 0 seconds
......@@ -13,6 +13,13 @@
#include <random>
#include <string>
#include <conventional/Engine.hpp>
#include <philox.h>
#include <threefry.h>
#if R123_USE_AES_NI
#include <ars.h>
#endif
#include <corsika/framework/utility/Singleton.hpp>
#include <corsika/framework/core/Logging.hpp>
......@@ -27,7 +34,12 @@ namespace corsika {
friend class corsika::Singleton<RNGManager>;
public:
typedef std::mt19937_64 prng_type;
//typedef std::mt19937_64 prng_type;
typedef r123::Engine<r123::Philox2x64> prng_type;
//typedef r123::Engine<r123::Philox4x64> prng_type;
//typedef r123::Engine<r123::Threefry2x64> prng_type;
//typedef r123::Engine<r123::Threefry4x64> prng_type;
//typedef r123::Engine<r123::ARS4x32> prng_type;
typedef std::uint64_t seed_type;
typedef std::string string_type;
typedef std::map<std::string, prng_type> streams_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment