1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/random/taus88.hpp

38 lines
1.2 KiB
C++
Raw Normal View History

2013-08-08 09:54:33 +00:00
/*=============================================================================
Copyright (c) 2011-2018 Bolero MURAKAMI
2013-08-08 09:54:33 +00:00
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
2011-10-18 15:18:58 +00:00
#ifndef SPROUT_RANDOM_TAUS88_HPP
#define SPROUT_RANDOM_TAUS88_HPP
#include <cstdint>
#include <sprout/config.hpp>
#include <sprout/random/linear_feedback_shift.hpp>
#include <sprout/random/xor_combine.hpp>
namespace sprout {
namespace random {
//
// taus88
//
typedef sprout::random::xor_combine_engine<
sprout::random::xor_combine_engine<
2013-11-10 12:23:09 +00:00
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 31, 13, 12>,
2011-10-18 15:18:58 +00:00
0,
2013-11-10 12:23:09 +00:00
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 29, 2, 4>,
2011-10-18 15:18:58 +00:00
0
>,
0,
2013-11-10 12:23:09 +00:00
sprout::random::linear_feedback_shift_engine<std::uint32_t, 32, 28, 3, 17>,
2011-10-18 15:18:58 +00:00
0
> taus88;
2013-03-22 05:24:19 +00:00
} // namespace random
2011-10-18 15:18:58 +00:00
using sprout::random::taus88;
2013-03-22 05:24:19 +00:00
} // namespace sprout
2011-10-18 15:18:58 +00:00
2013-03-22 05:24:19 +00:00
#endif // #ifndef SPROUT_RANDOM_TAUS88_HPP