summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/random/test/test_minstd_rand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/random/test/test_minstd_rand.cpp')
-rw-r--r--src/boost/libs/random/test/test_minstd_rand.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/boost/libs/random/test/test_minstd_rand.cpp b/src/boost/libs/random/test/test_minstd_rand.cpp
new file mode 100644
index 000000000..1212c57f2
--- /dev/null
+++ b/src/boost/libs/random/test/test_minstd_rand.cpp
@@ -0,0 +1,26 @@
+/* test_minstd_rand.cpp
+ *
+ * Copyright Steven Watanabe 2011
+ * 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)
+ *
+ * $Id$
+ *
+ */
+
+#include <boost/random/linear_congruential.hpp>
+#include <boost/cstdint.hpp>
+
+#define BOOST_RANDOM_URNG boost::random::minstd_rand
+
+#define BOOST_RANDOM_SEED_WORDS 1
+
+// validation values from the publications
+#define BOOST_RANDOM_VALIDATION_VALUE 399268537U
+#define BOOST_RANDOM_SEED_SEQ_VALIDATION_VALUE 1000962296U
+#define BOOST_RANDOM_ITERATOR_VALIDATION_VALUE 182651141U
+
+#define BOOST_RANDOM_GENERATE_VALUES { 0x8400BC8EU, 0xF45B895FU, 0x145F0F91U, 0xE5F8F088U }
+
+#include "test_generator.ipp"