diff --git a/pystencils_tests/test_random.py b/pystencils_tests/test_random.py
index d3686a7320bcbd12aad92e7791c4db48d91a6b78..aa6325961d0c8cfb6dbee893f43a443368501994 100644
--- a/pystencils_tests/test_random.py
+++ b/pystencils_tests/test_random.py
@@ -78,9 +78,8 @@ def test_rng(target, rng, precision, dtype, t=124, offsets=(0, 0), keys=(0, 0),
             int_reference = np.empty(dh.shape + (4,), dtype=int)
             for x in range(dh.shape[0]):
                 for y in range(dh.shape[1]):
-                    r = Philox(counter=t + (x + offset_values[0]) * 2 ** 32 + (y + offset_values[1]) * 2 ** 64,
+                    r = Philox(counter=t + (x + offset_values[0]) * 2 ** 32 + (y + offset_values[1]) * 2 ** 64 - 1,
                                key=keys[0] + keys[1] * 2 ** 32, number=4, width=32, mode="sequence")
-                    r.advance(-4, counter=False)
                     int_reference[x, y, :] = r.random_raw(size=4)
 
     if precision == 'float' or dtype == 'float':