File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,13 +36,26 @@ cdef extern from "flint/fmpz.h":
3636
3737ctypedef slong fmpz_struct
3838
39+ cdef extern from * :
40+ """
41+ /*
42+ * Functions renamed in Flint 3.2.0
43+ */
44+ #if __FLINT_RELEASE < 30200 /* Flint < 3.2.0 */
45+
46+ #define flint_rand_init flint_randinit
47+ #define flint_rand_clear flint_randclear
48+
49+ #endif
50+ """
51+
3952cdef extern from " flint/flint.h" :
4053 const char * FLINT_VERSION
4154 const int __FLINT_RELEASE
4255 const int FLINT_BITS
4356 ctypedef void * flint_rand_t
44- void flint_randinit (flint_rand_t state)
45- void flint_randclear (flint_rand_t state)
57+ void flint_rand_init (flint_rand_t state)
58+ void flint_rand_clear (flint_rand_t state)
4659 void flint_set_num_threads(long )
4760 long flint_get_num_threads()
4861 void flint_cleanup()
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ cimport cython
99from flint.flint_base.flint_context cimport thectx
1010
1111cdef flint_rand_t global_random_state
12- flint_randinit (global_random_state)
12+ flint_rand_init (global_random_state)
1313
1414ctx = thectx
You can’t perform that action at this time.
0 commit comments