folly::splitmix64

splitmix64

Synopsis

Declared in <folly/random/splitmix64.h>

constexpr
uint64_t
splitmix64(uint64_t& state) noexcept;

Description

The raw SplitMix64 mixing step: advances state by the SplitMix64 increment and returns the resulting mixed 64-bit value.

This is the primitive used to expand a single seed value into a larger amount of uniformly-distributed state, e.g. when seeding a wider generator.

Return Value

The mixed 64-bit value.

Parameters

NameDescription
stateThe state to advance; updated in place.