libs/useful/rand.c
void xs_init (xs_rng_t xsr, uint32_t seed)
{
    memset (xsr, 0, sizeof (xs_rng_t));
    xs_seed (xsr, seed);
}
/*
 * Xorshift RNG by George Marsaglia.
 * https://en.wikipedia.org/wiki/Xorshift
 */
Xorshift RNG by George Marsaglia.
Xorshift RNG by George Marsaglia .
void xs_init (xs_rng_t xsr, uint32_t seed)
{
    memset (xsr, 0, sizeof (xs_rng_t));
    xs_seed (xsr, seed);
}
void xs_init ( xs_rng_t xsr , uint32_t seed ) { memset ( xsr , 0 , sizeof ( xs_rng_t ) ) ; xs_seed ( xsr , seed ) ; }
Xorshift RNG by George Marsaglia.
Xorshift RNG by George Marsaglia .