From c46202ad206b36d889244dbd8c4f4dfe942cc047 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Wed, 13 Nov 2024 10:14:58 +0100 Subject: [PATCH] use 64 bit seed and RNG --- .../Algorithms/Digitization/src/DigitizationAlgorithm.cpp | 2 +- .../include/ActsExamples/Framework/RandomNumbers.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp b/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp index 603e5bb7d82..a0529653aff 100644 --- a/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp +++ b/Examples/Algorithms/Digitization/src/DigitizationAlgorithm.cpp @@ -162,7 +162,7 @@ ActsExamples::ProcessCode ActsExamples::DigitizationAlgorithm::execute( // Count the number of hits per particle and module. Cleared before each // module. - std::map particleOnModuleHitCount; + std::map particleOnModuleHitCount; ACTS_DEBUG("Starting loop over modules ..."); for (const auto& simHitsGroup : groupByModule(simHits)) { diff --git a/Examples/Framework/include/ActsExamples/Framework/RandomNumbers.hpp b/Examples/Framework/include/ActsExamples/Framework/RandomNumbers.hpp index a94bac778f6..788f67f166f 100644 --- a/Examples/Framework/include/ActsExamples/Framework/RandomNumbers.hpp +++ b/Examples/Framework/include/ActsExamples/Framework/RandomNumbers.hpp @@ -15,10 +15,10 @@ namespace ActsExamples { struct AlgorithmContext; /// The random number generator used in the framework. -using RandomEngine = std::mt19937; ///< Mersenne Twister +using RandomEngine = std::mt19937_64; ///< Mersenne Twister /// The seed type used in the framework. -using RandomSeed = std::uint32_t; +using RandomSeed = std::uint64_t; /// Provide event and algorithm specific random number generator.s ///