pass in the rng within the DiscreteBayesNet sample call

release/4.3a0
Varun Agrawal 2025-05-16 00:07:21 -04:00
parent d01bf5d80b
commit 22a36b3d7a
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ double DiscreteBayesNet::evaluate(const DiscreteValues& values) const {
/* ************************************************************************* */ /* ************************************************************************* */
DiscreteValues DiscreteBayesNet::sample(std::mt19937_64* rng) const { DiscreteValues DiscreteBayesNet::sample(std::mt19937_64* rng) const {
DiscreteValues result; DiscreteValues result;
return sample(result); return sample(result, rng);
} }
DiscreteValues DiscreteBayesNet::sample(DiscreteValues result, DiscreteValues DiscreteBayesNet::sample(DiscreteValues result,