From 8484e8928f0519dca7a6b39f8fe590b57e30f796 Mon Sep 17 00:00:00 2001 From: "A. Riddell" Date: Wed, 3 Jul 2024 09:40:44 -0400 Subject: [PATCH] fix: Update boost rng type for Stan 2.35 --- httpstan/stan_services.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httpstan/stan_services.cpp b/httpstan/stan_services.cpp index 8cbbf032c..e41d42970 100644 --- a/httpstan/stan_services.cpp +++ b/httpstan/stan_services.cpp @@ -19,6 +19,8 @@ namespace py = pybind11; +using rng_t = boost::random::mixmax; + // forward declaration for function defined in another translation unit stan::model::model_base &new_model(stan::io::var_context &data_context, unsigned int seed, std::ostream *msg_stream); @@ -203,7 +205,7 @@ std::vector log_prob_grad(py::dict data, const std::vector &unco // See exported docstring std::vector write_array(py::dict data, const std::vector &unconstrained_parameters, bool include_tparams = true, bool include_gqs = true) { - boost::ecuyer1988 base_rng(0); + rng_t base_rng(0); std::vector params_r_constrained; stan::io::array_var_context &var_context = new_array_var_context(data); // random_seed, the second argument, is unused but the function requires it.