std::subtra...engine::seed(3)
π std::subtra...engine::seed(3) π
okay so bestie, we're in the C++ Standard Libary manual β yes, the original page spells it βLibary,β and we are keeping that exact energy. This page is about std::subtract_with_carry_engine::seed, and it is lowkey just the βset the state of the random-number engineβ button. No cap. β¨
β¨ NAME β¨
std::subtract_with_carry_engine::seed - std::subtract_with_carry_engine::seed
π Synopsis π
void seed( result_type value = 0u ); (1) (since C++11)
template< class SeedSeq > (2) (since C++11)
void seed( SeedSeq& seq );
This thing sets the state of the random-number engine. That is the whole vibe, fr fr. π«Ά
- Right after the state is set,
*this == std::subtract_with_carry_engine(value)istrue. - Right after the state is set,
*this == std::subtract_with_carry_engine(seq)istrue.
π Parameters π
valueβ seed value to use to set the state.seqβ seed sequence to use to set the state.
π Exceptions π
Throws nothing. literally nothing. silent. iconic. π
π₯ Complexity π₯
- Same as
std::subtract_with_carry_engine(value). - Same as
std::subtract_with_carry_engine(seq).
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR:
LWG 3809β Applied to:C++11; Behavior as published: the default argument ofvaluewasdefault_seed; Correct behavior: changed to0u.
kisses and sparkles, bestie π β source/version: http://cppreference.com, 2024.06.10, and the page title is std::subtra...engine::seed(3). Go seed something cute. π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms