Function cmb_random_initialize

Function Documentation

void cmb_random_initialize(uint64_t seed)

Initiate pseudo-random number distribution using a 64-bit seed. Call this function before drawing samples from any random number distributions. Can be called again later to reset seed to initial (or some other) state.

The given seed will be bootstrapped internally to a 256-bit state by an auxiliary pseudo-random number generator only used for this purpose. The state is thread local, i.e., the call is only effective for the currently executing thread.

Parameters:
  • seed – Initial seed value to be used, preferably a random 64-bit value.