diff --git a/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod b/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod
index b16a37dfff6640eb2f80a2a6413c12fa5afbd0ca..61072d20f578e338b7168443f92e53e52b33f74f 100644
--- a/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod
+++ b/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod
@@ -1,5 +1,12 @@
 @#include "fs2000ns_model.inc" 
 
+% Under Octave, the default seed leads to a generated dataset that makes
+% fs2000ns_corr_ME.mod and fs2000ns_corr_ME_missing.mod fail (due to a large
+% difference between univariate and multivariate diffuse filters).
+if isoctave
+    set_dynare_seed(2);
+end
+
 stoch_simul(periods=200, order=1,irf=0);
 temp=oo_.endo_simul;
 %add measurement error