1 /* test_linear_feedback_shift.cpp 2 * 3 * Copyright Steven Watanabe 2011 4 * Distributed under the Boost Software License, Version 1.0. (See 5 * accompanying file LICENSE_1_0.txt or copy at 6 * http://www.boost.org/LICENSE_1_0.txt) 7 * 8 * $Id$ 9 * 10 */ 11 12 #include <boost/random/linear_feedback_shift.hpp> 13 14 typedef boost::random::linear_feedback_shift_engine<boost::uint32_t, 32, 31, 13, 12> linear_feedback_shift; 15 #define BOOST_RANDOM_URNG linear_feedback_shift 16 17 #define BOOST_RANDOM_SEED_WORDS 1 18 19 #define BOOST_RANDOM_VALIDATION_VALUE 981440277U 20 #define BOOST_RANDOM_SEED_SEQ_VALIDATION_VALUE 3709603036U 21 #define BOOST_RANDOM_ITERATOR_VALIDATION_VALUE 3112279337U 22 23 #define BOOST_RANDOM_GENERATE_VALUES { 0x154005U, 0x54005502U, 0x5502BD4U, 0x2BD4005U } 24 25 #include "test_generator.ipp" 26