diff --git a/k4FWCore/components/UniqueIDGenSvc.cpp b/k4FWCore/components/UniqueIDGenSvc.cpp index cd390e31..cd55f0ab 100644 --- a/k4FWCore/components/UniqueIDGenSvc.cpp +++ b/k4FWCore/components/UniqueIDGenSvc.cpp @@ -35,17 +35,17 @@ size_t UniqueIDGenSvc::getUniqueID(uint32_t evt_num, uint32_t run_num, const std std::bitset combined_bits; - for (size_t i = 0; i < bits64; i++) { - combined_bits[i + bits32 + bits32 + bitsSizeT] = seed_bits[i]; + for (size_t i = 0; i < bitsSizeT; i++) { + combined_bits[i] = name_bits[i]; } for (size_t i = 0; i < bits32; i++) { - combined_bits[i + bits32 + bitsSizeT] = event_num_bits[i]; + combined_bits[i + bitsSizeT] = run_num_bits[i]; } for (size_t i = 0; i < bits32; i++) { - combined_bits[i + bitsSizeT] = run_num_bits[i]; + combined_bits[i + bits32 + bitsSizeT] = event_num_bits[i]; } - for (size_t i = 0; i < bitsSizeT; i++) { - combined_bits[i] = name_bits[i]; + for (size_t i = 0; i < bits64; i++) { + combined_bits[i + bits32 + bits32 + bitsSizeT] = seed_bits[i]; } auto hash = std::hash>{}(combined_bits);