Program Listing for File rng_impl.hpp
↰ Return to documentation for file (rcppsw/math/detail/rng_impl.hpp
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include <random>
#include "rcppsw/rcppsw.hpp"
/*******************************************************************************
* Namespaces/Decls
******************************************************************************/
namespace rcppsw::math::detail {
/*******************************************************************************
* Class Definitions
******************************************************************************/
struct rng_impl {
explicit rng_impl(uint seed) : engine(seed) {}
std::default_random_engine engine;
};
} /* namespace rcppsw::math::detail */