Games
The code of ztk::game is its own. This page lists the methods that it follows.
The random generator
Guy L. Steele Jr., Doug Lea, and Christine H. Flood, "Fast Splittable Pseudorandom Number Generators", OOPSLA 2014. The constants of the output function are the constants of the public domain C version splitmix64.c of Sebastiano Vigna, 2015. https://prng.di.unimi.it/splitmix64.c
License: Paper, and public domain code
How ztk uses it: game random adds the golden ratio constant to a 64-bit state and mixes the sum with two multiplies and three shifts. ztk has its own code for the function. A test checks the first two numbers of the seed 0 against the published values.
A float from 64 bits
The top 53 bits of a number times 2^-53 give a double from 0 to 1, less than 1, with each value at the same distance. Vigna describes the method on the same page: https://prng.di.unimi.it/
License: Web page
How ztk uses it: game random with no argument.
A fixed step with catch-up
Glenn Fiedler, "Fix Your Timestep!", 2004. https://gafferongames.com/post/fix_your_timestep/
License: Article
How ztk uses it: the loop of game loop adds the time of each frame to an accumulator, runs one update for each whole step in it, and gives the draw the fraction that is left. ztk counts the time in microseconds times the rate, so a step is a whole number of units, and it caps the steps of one frame (-maxsteps). ztk has its own code for the loop.