aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/list_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/list_check.c b/tests/list_check.c
index 9656dd1a..a83de455 100644
--- a/tests/list_check.c
+++ b/tests/list_check.c
@@ -45,7 +45,7 @@ struct refltemp {
int found;
};
-#define RANDOM_INDEX (128*random()/RAND_MAX - 256*random()/RAND_MAX)
+#define RANDOM_INDEX (1022*random()/RAND_MAX - 511)
static int test_lists(int num_items)