Skip to main content

Module prng

Module prng 

Source
Expand description

Prng, the generator of pg_prng.c: xoroshiro128** with a seed from splitmix64. random, setseed and the random functions of the other types use it, so a session after setseed gives the same numbers as PostgreSQL.

Structsยง

Prng
The state of the generator, as pg_prng_state holds it.