1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // template<class RandomAccessIterator>
14 // void generate(RandomAccessIterator begin, RandomAccessIterator end);
19 #include "test_macros.h"
24 // These numbers generated from a slightly altered version of dSFMT
25 // http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html
799 unsigned v
[] = {3, 5, 7};
800 const int size
= sizeof(v
)/sizeof(v
[0]);
801 std::seed_seq
s(v
, v
+ size
);
802 s
.generate(b
, b
+ n
);
803 for (int i
= 0; i
< n
; ++i
)
804 assert(a
[i
] == b
[i
]);