diff --git a/sprout/random/taus88.hpp b/sprout/random/taus88.hpp index 45b2f4e7..aa96dcff 100644 --- a/sprout/random/taus88.hpp +++ b/sprout/random/taus88.hpp @@ -20,13 +20,13 @@ namespace sprout { // typedef sprout::random::xor_combine_engine< sprout::random::xor_combine_engine< - sprout::random::linear_feedback_shift_engine, + sprout::random::linear_feedback_shift_engine, 0, - sprout::random::linear_feedback_shift_engine, + sprout::random::linear_feedback_shift_engine, 0 >, 0, - sprout::random::linear_feedback_shift_engine, + sprout::random::linear_feedback_shift_engine, 0 > taus88; } // namespace random diff --git a/sprout/random/xor_combine.hpp b/sprout/random/xor_combine.hpp index 8d331064..fb9b520f 100644 --- a/sprout/random/xor_combine.hpp +++ b/sprout/random/xor_combine.hpp @@ -108,7 +108,7 @@ namespace sprout { return NS_SSCRISK_CEL_OR_SPROUT::min(rng1_.min(), rng2_.min()); } 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()() { return (static_cast(rng1_()) << s1) ^ (static_cast(rng2_()) << s2);