std::linear_congruential_engine<UIntType,a,c,m>::linear_congruential_engine
Min standard notice:
Constructs the pseudo-random number engine.
# Declarations
linear_congruential_engine() : linear_congruential_engine(default_seed) {}
(since C++11)
explicit linear_congruential_engine( result_type value );
(since C++11)
template< class SeedSeq >
explicit linear_congruential_engine( SeedSeq& seq );
(since C++11)
linear_congruential_engine( const linear_congruential_engine& other );
(since C++11) (implicitly declared)
# Parameters
value: seed value to use in the initialization of the internal stateseq: seed sequence to use in the initialization of the internal state
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 2181 | C++11 | overload (3) would not throw even if the seq.generate call throws | propagates the exception |
| P0935R0 | C++11 | the default constructor was explicit | made implicit |