Skip to content

Commit

Permalink
shrink p^d for zech testing
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoPope committed Sep 2, 2024
1 parent 1195800 commit 009a93f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fq_default/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ void fq_default_ctx_init_randtest(fq_default_ctx_t ctx, flint_rand_t state)
{
fmpz_t prime;
slong deg;

/* Select a context type [1,...,5] */
int ctx_type = 1 + n_randint(state, 5);
switch (ctx_type)
{
/* Create GF(p^d) for FQ_ZECH context */
case FQ_DEFAULT_FQ_ZECH:
fmpz_randprime(prime, state, 2 + n_randint(state, 4), 1);
deg = 1 + n_randint(state, 4);
fmpz_randprime(prime, state, 2 + n_randint(state, 3), 1);
deg = 1 + n_randint(state, 3);
break;
/* Create GF(p^d) for FQ_NMOD context */
case FQ_DEFAULT_FQ_NMOD:
Expand Down

0 comments on commit 009a93f

Please sign in to comment.