FLINT3.7.0-dev

flint_randinit, flint_randclear, flint_randseed, flint_get_randseed, flint_rand_alloc, flint_rand_free

Synopsis#include <flint/flint.h>
void flint_randinit(flint_rand_t state)source
void flint_randclear(flint_rand_t state)source
void flint_randseed(flint_rand_t state, ulong seed1, ulong seed2)source
void flint_get_randseed(ulong * seed1, ulong * seed2, flint_rand_t state)source
flint_rand_struct * flint_rand_alloc(void)source
void flint_rand_free(flint_rand_struct * state)source

Deprecated: the first four are the old names of flint_rand_init, flint_rand_clear, flint_rand_set_seed and flint_rand_get_seed; flint_rand_alloc and flint_rand_free allocate and free a state with flint_malloc and flint_free.

Cite this page

The FLINT team, “flint_randinit, flint_randclear, flint_randseed, flint_get_randseed, flint_rand_alloc, flint_rand_free (flint.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/flint/flint_randinit.html (generated 2026-10-20).