Constructs the pseudo-random number engine.
default_seed
. The overload (3) only participates in overload resolution if Sseq
qualifies as a SeedSequence. In particular, it is excluded from the set of candidate functions if Sseq
is convertible to result_type
.
value | - | seed value to use in the initialization of the internal state |
s | - | seed sequence to use in the initialization of the internal state |
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
P0935R0 | C++11 | default constructor was explicit | made implicit |
(C++11) | sets the current state of the engine (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/random/linear_congruential_engine/linear_congruential_engine