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 // UNSUPPORTED: c++98, c++03 11 12 // <random> 13 14 // class seed_seq; 15 16 // template<class T> 17 // seed_seq(initializer_list<T> il); 18 19 #include <random> 20 #include <cassert> 21 22 int main() 23 { 24 std::seed_seq s= {5, 4, 3, 2, 1}; 25 assert(s.size() == 5); 26 unsigned b[5] = {0}; 27 s.param(b); 28 assert(b[0] == 5); 29 assert(b[1] == 4); 30 assert(b[2] == 3); 31 assert(b[3] == 2); 32 assert(b[4] == 1); 33 } 34