kblib 0.2.3
General utilities library for modern C++
kblib::lcgs::common_lcgs Namespace Reference

Typedefs

using rand48 = transform_engine< lcg_p2< std::uint_fast64_t, 25214903917u, 11u, 48u >, shift_mask< std::uint_fast32_t, 16u > >
 
using java_rand = rand48
 
using glibc_rand0 = transform_engine< lcg_p2< std::uint_fast32_t, 1103515245, 12345, 31u >, shift_mask< std::uint_fast32_t, 0, ipow2(30) - 1 > >
 
using ansic_rand = transform_engine< lcg_p2< std::uint_fast32_t, 1103515245, 12345, 31u >, shift_mask< std::uint_fast32_t, 16, ipow2(14) - 1 > >
 
using knuth_lcg = std::linear_congruential_engine< uint64_t, 6364136223846793005U, 1442695040888963407U, 0U >
 

Typedef Documentation

◆ ansic_rand

using kblib::lcgs::common_lcgs::ansic_rand = typedef transform_engine<lcg_p2<std::uint_fast32_t, 1103515245, 12345, 31u>, shift_mask<std::uint_fast32_t, 16, ipow2(14) - 1> >

Definition at line 341 of file random.h.

◆ glibc_rand0

using kblib::lcgs::common_lcgs::glibc_rand0 = typedef transform_engine<lcg_p2<std::uint_fast32_t, 1103515245, 12345, 31u>, shift_mask<std::uint_fast32_t, 0, ipow2(30) - 1> >

Definition at line 338 of file random.h.

◆ java_rand

Definition at line 336 of file random.h.

◆ knuth_lcg

using kblib::lcgs::common_lcgs::knuth_lcg = typedef std::linear_congruential_engine< uint64_t, 6364136223846793005U, 1442695040888963407U, 0U>

Definition at line 345 of file random.h.

◆ rand48

using kblib::lcgs::common_lcgs::rand48 = typedef transform_engine<lcg_p2<std::uint_fast64_t, 25214903917u, 11u, 48u>, shift_mask<std::uint_fast32_t, 16u> >

Definition at line 333 of file random.h.