diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2020-02-09 16:15:49 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2020-02-09 16:15:49 +0100 |
commit | 4212c96e88ee1c0fa7000c417e69c0b5bb4c2fcf (patch) | |
tree | 5bbed53f0c749bda9b177634583f1039493f6017 /tests | |
parent | 72da84bbf466de39ccb010f3792a79d7bad3b075 (diff) | |
download | gmp-4212c96e88ee1c0fa7000c417e69c0b5bb4c2fcf.tar.gz |
tests/mpn/t-sqrmod_bnm1.c: Trigger special cases more often.
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); |