mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-05-10 09:23:30 +00:00
fix taus88
This commit is contained in:
parent
fc1d4421fd
commit
2b08b8e1d5
2 changed files with 4 additions and 4 deletions
|
@ -20,13 +20,13 @@ namespace sprout {
|
||||||
//
|
//
|
||||||
typedef sprout::random::xor_combine_engine<
|
typedef sprout::random::xor_combine_engine<
|
||||||
sprout::random::xor_combine_engine<
|
sprout::random::xor_combine_engine<
|
||||||
sprout::random::linear_feedback_shift_engine<std::uint_fast32_t, 32, 31, 13, 12>,
|
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 31, 13, 12>,
|
||||||
0,
|
0,
|
||||||
sprout::random::linear_feedback_shift_engine<std::uint_fast32_t, 32, 29, 2, 4>,
|
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 29, 2, 4>,
|
||||||
0
|
0
|
||||||
>,
|
>,
|
||||||
0,
|
0,
|
||||||
sprout::random::linear_feedback_shift_engine<std::uint_fast32_t, 32, 28, 3, 17>,
|
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 28, 3, 17>,
|
||||||
0
|
0
|
||||||
> taus88;
|
> taus88;
|
||||||
} // namespace random
|
} // namespace random
|
||||||
|
|
|
@ -108,7 +108,7 @@ namespace sprout {
|
||||||
return NS_SSCRISK_CEL_OR_SPROUT::min(rng1_.min(), rng2_.min());
|
return NS_SSCRISK_CEL_OR_SPROUT::min(rng1_.min(), rng2_.min());
|
||||||
}
|
}
|
||||||
SPROUT_CONSTEXPR result_type max() const SPROUT_NOEXCEPT {
|
SPROUT_CONSTEXPR result_type max() const SPROUT_NOEXCEPT {
|
||||||
return NS_SSCRISK_CEL_OR_SPROUT::max(rng1_.min(), rng2_.max());
|
return NS_SSCRISK_CEL_OR_SPROUT::max(rng1_.max(), rng2_.max());
|
||||||
}
|
}
|
||||||
SPROUT_CXX14_CONSTEXPR result_type operator()() {
|
SPROUT_CXX14_CONSTEXPR result_type operator()() {
|
||||||
return (static_cast<result_type>(rng1_()) << s1) ^ (static_cast<result_type>(rng2_()) << s2);
|
return (static_cast<result_type>(rng1_()) << s1) ^ (static_cast<result_type>(rng2_()) << s2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue