folly::splitmix64_engine

splitmix64_engine

Synopsis

Declared in <folly/random/splitmix64.h>

class splitmix64_engine;

Description

A standard-conforming RandomNumberEngine wrapping the SplitMix64 mixing step. Its 64-bit internal state advances by a fixed increment per draw, so discard() is O(1) and the full state is recoverable via operator>>.

Type Aliases

NameDescription
result_type The unsigned integer type produced by the engine.

Member Functions

NameDescription
splitmix64_engine [constructor]Constructors
discard discard
operator() Generates the next random value.
seed seed

Static Member Functions

NameDescription
max Returns the largest value the engine can produce.
min Returns the smallest value the engine can produce.

Static Data Members

NameDescription
default_seed Default seed value used when none is provided.

Friends

NameDescription
folly::operator>>Reads the engine state from an input stream.
folly::operator<<Writes the engine state to an output stream.
folly::operator==Compares two engines for equality of state.