The header file <random> allows you to initialize the internal sequence of the seed sequence. An object of class seed_seq can be constructed in several ways. I am wondering which method is used in C ++.
I look at the site here: http://www.cplusplus.com/reference/std/random/seed_seq/seed_seq/
And in the example section, I see this line:
std::seed_seq seed2 = {102,406,7892};
What exactly is going on here? It seems the class object is assigned to an array. I looked at the list-initializer-constructor, the copy destination constructor, and I'm still confused about what exactly is going on.
I understand std::seed_seq seed3 (foo.begin(),foo.end()); and std::seed_seq seed1; . The first code fragment ( seed3 ) calls the seed_seq constructor with the arguments foo.begin() and foo.end() , and the second code fragment ( seed1 ) is constructed using the default constructor.
jrand source share