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)sourcevoid flint_randclear(flint_rand_t state)sourcevoid flint_randseed(flint_rand_t state, ulong seed1, ulong seed2)sourcevoid flint_get_randseed(ulong * seed1, ulong * seed2, flint_rand_t state)sourceflint_rand_struct * flint_rand_alloc(void)sourcevoid flint_rand_free(flint_rand_struct * state)sourceDeprecated: 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).
@misc{flint-doc-flint-flint-randinit,
author = {{The FLINT team}},
title = {{flint\_randinit, flint\_randclear, flint\_randseed, flint\_get\_randseed, flint\_rand\_alloc, flint\_rand\_free (flint.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/flint/flint_randinit.html},
note = {Generated 2026-10-20}
}