From 93c6569621084680dc94e5395b39f6308ae9d11a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 9 Aug 2019 14:00:27 +0200 Subject: Reduce range of reindexing matrices --- tests/cellcompare_check.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/cellcompare_check.c') diff --git a/tests/cellcompare_check.c b/tests/cellcompare_check.c index 472f3a25..962566a9 100644 --- a/tests/cellcompare_check.c +++ b/tests/cellcompare_check.c @@ -62,9 +62,10 @@ static RationalMatrix *random_reindexing(gsl_rng *rng) do { for ( i=0; i<3; i++ ) { for ( j=0; j<3; j++ ) { - /* 0..8 inclusive -> -4..4 inclusive */ - signed int a = gsl_rng_uniform_int(rng, 9) - 4; - signed int b = gsl_rng_uniform_int(rng, 9) - 4; + /* 0..6 inclusive -> -3..3 inclusive */ + signed int a = gsl_rng_uniform_int(rng, 7) - 3; + /* 0..2 inclusive */ + signed int b = gsl_rng_uniform_int(rng, 3); if ( b == 0 ) { a = 0; b = 1; -- cgit v1.2.3