diff --git a/test/test_data_utils.py b/test/test_data_utils.py index cfc364a2..658e79b3 100644 --- a/test/test_data_utils.py +++ b/test/test_data_utils.py @@ -6,8 +6,10 @@ def test_apply_affines(): + rng = np.random.default_rng(1234) + # Create synthetic dataset - nii_data = np.random.rand(10, 10, 10, 10) + nii_data = rng.random((10, 10, 10, 10)) # Generate Nifti1Image nii = nib.Nifti1Image(nii_data, np.eye(4))