std::philox_engine<UIntType,w,n,r,consts>::seed - cppreference.com (original) (raw)
void seed( result_type value = default_seed ); | (1) | (since C++26) |
---|---|---|
template< class SeedSeq > void seed( SeedSeq& seq ); | (2) | (since C++26) |
Sets the state of the random-number engine.
Right after the state is set, *this == std::philox_engine(value) is true.
Right after the state is set, *this == std::philox_engine(seq) is true.
[edit] Parameters
value | - | seed value to use to set the state |
---|---|---|
seq | - | seed sequence to use to set the state |
[edit] Exceptions
- If
SeedSeq
is not std::seed_seq, throws the exceptions thrown by theseq.generate
call.