Skip to content

Commit

Permalink
use 64 bit seed and RNG
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Nov 13, 2024
1 parent 3185410 commit c46202a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ActsExamples::ProcessCode ActsExamples::DigitizationAlgorithm::execute(

// Count the number of hits per particle and module. Cleared before each
// module.
std::map<SimBarcode, int> particleOnModuleHitCount;
std::map<SimBarcode, std::uint32_t> particleOnModuleHitCount;

ACTS_DEBUG("Starting loop over modules ...");
for (const auto& simHitsGroup : groupByModule(simHits)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit c46202a

Please sign in to comment.