Skip to content

Commit 009a93f

Browse files
committed
shrink p^d for zech testing
1 parent 1195800 commit 009a93f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fq_default/ctx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ void fq_default_ctx_init_randtest(fq_default_ctx_t ctx, flint_rand_t state)
205205
{
206206
fmpz_t prime;
207207
slong deg;
208-
208+
209209
/* Select a context type [1,...,5] */
210210
int ctx_type = 1 + n_randint(state, 5);
211211
switch (ctx_type)
212212
{
213213
/* Create GF(p^d) for FQ_ZECH context */
214214
case FQ_DEFAULT_FQ_ZECH:
215-
fmpz_randprime(prime, state, 2 + n_randint(state, 4), 1);
216-
deg = 1 + n_randint(state, 4);
215+
fmpz_randprime(prime, state, 2 + n_randint(state, 3), 1);
216+
deg = 1 + n_randint(state, 3);
217217
break;
218218
/* Create GF(p^d) for FQ_NMOD context */
219219
case FQ_DEFAULT_FQ_NMOD:

0 commit comments

Comments
 (0)