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.

  1. Right after the state is set, *this == std::philox_engine(value) is true.

  2. 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

  1. If SeedSeq is not std::seed_seq, throws the exceptions thrown by the seq.generate call.

[edit] Complexity

[edit] See also