libtcod
Loading...
Searching...
No Matches
random.h File Reference

Experimental random number generators. More...

#include <stdint.h>
#include "config.h"

Go to the source code of this file.

Functions

static uint64_t TCOD_rng_splitmix64_next (uint64_t *state)
 Return the next random uint64_t from a SplitMix64 generator.
 

Detailed Description

Experimental random number generators.

Function Documentation

◆ TCOD_rng_splitmix64_next()

static uint64_t TCOD_rng_splitmix64_next ( uint64_t * state)
inlinestatic

Return the next random uint64_t from a SplitMix64 generator.

state[1] is a non-NULL pointer to the internal state of the generator. There is no initializer function because the first value of state[1] is itself the seed which can start at any value. state[1] will be updated by this call.

This function is provisional and may change.