From a9a9de5e26d47f44c52fff633c7e0cef5284243f Mon Sep 17 00:00:00 2001 From: Boyan Bejanov Date: Mon, 30 Jan 2023 14:25:36 -0500 Subject: [PATCH] fixed random seed for tests --- test/sim_fo.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/sim_fo.jl b/test/sim_fo.jl index 613a42a..9961a00 100644 --- a/test/sim_fo.jl +++ b/test/sim_fo.jl @@ -6,6 +6,7 @@ ################################################################################## using Random +using LinearAlgebra function run_fo_unant_tests(model) clear_sstate!(model) @@ -161,6 +162,8 @@ function test_initdecomp_firstorder(m, rng=2001Q1:2020Q4, step=max(2, length(rng linearize!(m) solve!(m, solver=:firstorder) + Random.seed!(0xFF) + p = Plan(m, rng) exog = steadystatedata(m, p) exog[begin:first(rng)-1, m.variables] .= rand(m.maxlag, m.nvars) @@ -220,6 +223,8 @@ function test_initdecomp_stackedtime(m; nonlin=!m.linear, rng=2001Q1:2024Q4, fct linearize!(m) solve!(m; solver) + Random.seed!(0xFF) + # test 1 - only initial conditions, no shocks p = Plan(m, rng) exog = steadystatedata(m, p)