From 13c5dcf6370e14d7a454b695eafe072d4bdc6965 Mon Sep 17 00:00:00 2001 From: Peter Caspers Date: Sat, 11 Nov 2023 13:25:04 +0100 Subject: [PATCH] fixes --- ql/math/randomnumbers/burley2020sobolrsg.hpp | 2 +- ql/math/randomnumbers/sobolrsg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ql/math/randomnumbers/burley2020sobolrsg.hpp b/ql/math/randomnumbers/burley2020sobolrsg.hpp index 95418eef676..445fc3a7679 100644 --- a/ql/math/randomnumbers/burley2020sobolrsg.hpp +++ b/ql/math/randomnumbers/burley2020sobolrsg.hpp @@ -17,7 +17,7 @@ FOR A PARTICULAR PURPOSE. See the license for more details. */ -/*! \file burley2020scrambling.hpp +/*! \file burley2020sobolrsg.hpp \brief scrambled Sobol sequence following Burley, 2020 */ diff --git a/ql/math/randomnumbers/sobolrsg.cpp b/ql/math/randomnumbers/sobolrsg.cpp index 935714844f9..1e0810e843c 100644 --- a/ql/math/randomnumbers/sobolrsg.cpp +++ b/ql/math/randomnumbers/sobolrsg.cpp @@ -78793,7 +78793,7 @@ namespace QuantLib { } } } else { - std::fill(integerSequence_.begin(), integerSequence_.end(), 0.0); + std::fill(integerSequence_.begin(), integerSequence_.end(), 0u); std::uint_least32_t mask = 1; for (Size index = 0; index < bits_; index++) { if ((N & mask) != 0U) {