Skip to content

Commit

Permalink
of course lol
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Oct 10, 2024
1 parent 5ad475f commit 5c9a86f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fq_default/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ void fq_default_ctx_init_randtest(fq_default_ctx_t ctx, flint_rand_t state)
slong deg;
int ctx_type;

fmpz_init(prime);
ctx_type = FQ_DEFAULT_FQ_ZECH + n_randint(state, FQ_DEFAULT_FMPZ_MOD - FQ_DEFAULT_FQ_ZECH + 1);

switch (ctx_type)
Expand Down Expand Up @@ -245,4 +246,5 @@ void fq_default_ctx_init_randtest(fq_default_ctx_t ctx, flint_rand_t state)
default: FLINT_UNREACHABLE;
}
fq_default_ctx_init_type(ctx, prime, deg, "a", ctx_type);
fmpz_clear(prime);
}

0 comments on commit 5c9a86f

Please sign in to comment.