aboutsummaryrefslogtreecommitdiff
path: root/tests/cellcompare_check.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-09 14:00:27 +0200
committerThomas White <taw@physics.org>2019-08-16 10:27:00 +0200
commit93c6569621084680dc94e5395b39f6308ae9d11a (patch)
treed40762dbd6c531e08ac4198b410ea6caad54a014 /tests/cellcompare_check.c
parent81d63f562ae5fad3245b565743b2de8e6cc88048 (diff)
Reduce range of reindexing matrices
Diffstat (limited to 'tests/cellcompare_check.c')
-rw-r--r--tests/cellcompare_check.c7
1 files changed, 4 insertions, 3 deletions
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;