BloombergLP::bdlb::PcgRandomGenerator::seed

Seed this generator with the specified new initState and streamSelector.

Synopsis

Declared in <bdlb_pcgrandomgenerator.h>

void
seed(
    uint64_t initState,
    uint64_t streamSelector);

Description

Seed this generator with the specified new initState and streamSelector. Note that the sequence of random numbers produced from subsequent invocations of generate() will be the same as that produced by an object created by PcgRandomGenerator(initState, streamSelector).

Parameters

NameDescription
initStateinitial state for the generator
streamSelectorstream selector for the generator sequence