1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // <random>
11
12 // template <class UIntType, size_t w, size_t n, size_t m, size_t r,
13 // UIntType a, size_t u, UIntType d, size_t s,
14 // UIntType b, size_t t, UIntType c, size_t l, UIntType f>
15 // class mersenne_twister_engine
16 // {
17 // public:
18 // // types
19 // typedef UIntType result_type;
20
21 #include <random>
22 #include <type_traits>
23
24 void
test1()25 test1()
26 {
27 static_assert((std::is_same<
28 std::mt19937::result_type,
29 std::uint_fast32_t>::value), "");
30 }
31
32 void
test2()33 test2()
34 {
35 static_assert((std::is_same<
36 std::mt19937_64::result_type,
37 std::uint_fast64_t>::value), "");
38 }
39
main()40 int main()
41 {
42 test1();
43 test2();
44 }
45