From bb6bc5eed386ecbb73372bd0fe68c399d4c3467e Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Mon, 5 Aug 2019 13:29:45 +0200
Subject: [PATCH] Get properly random positions in the testSymmetry.

---
 tests/testSymmetry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/testSymmetry.c b/tests/testSymmetry.c
index 1f0849bb90..eb20c84ec8 100644
--- a/tests/testSymmetry.c
+++ b/tests/testSymmetry.c
@@ -55,8 +55,8 @@ void test(void) {
   }
 
   /* Make the particle smoothing length and position reasonable */
-  for (size_t i = 0; i < 3; ++i) pi.x[0] = random_uniform(-1., 1.);
-  for (size_t i = 0; i < 3; ++i) pj.x[0] = random_uniform(-1., 1.);
+  for (size_t i = 0; i < 3; ++i) pi.x[i] = random_uniform(-1., 1.);
+  for (size_t i = 0; i < 3; ++i) pj.x[i] = random_uniform(-1., 1.);
   pi.h = 2.f;
   pj.h = 2.f;
   pi.id = 1ll;
-- 
GitLab