diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mpn/t-sqrmod_bnm1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/mpn/t-sqrmod_bnm1.c b/tests/mpn/t-sqrmod_bnm1.c index 9f96e83fe..27e5f3878 100644 --- a/tests/mpn/t-sqrmod_bnm1.c +++ b/tests/mpn/t-sqrmod_bnm1.c @@ -2,7 +2,7 @@ Contributed to the GNU project by Marco Bodrato. -Copyright 2009 Free Software Foundation, Inc. +Copyright 2009, 2020 Free Software Foundation, Inc. This file is part of the GNU MP Library test suite. @@ -126,7 +126,8 @@ main (int argc, char **argv) mp_size_t x; MPN_COPY (ap, ap + (n >> 1), an - (n >> 1)); MPN_ZERO (ap + an - (n >> 1) , n - an); - x = (n == an) ? 0 : gmp_urandomm_ui (rands, n - an); + x = 0; + /* x = (n == an) ? 0 : gmp_urandomm_ui (rands, n - an); */ ap[x] += gmp_urandomm_ui (rands, 3) - 1; } rn = MIN(n, 2*an); |