Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 9, 2024
1 parent 5302833 commit 1994069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k4FWCore/components/UniqueIDGenSvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ constexpr size_t bits64 = std::numeric_limits<uint64_t>::digits;
constexpr size_t bitsSizeT = std::numeric_limits<size_t>::digits;

size_t UniqueIDGenSvc::getUniqueID(uint32_t evt_num, uint32_t run_num, const std::string& name) const {
std::bitset<bits64> seed_bits = this->m_seed.value();
std::bitset<bits64> seed_bits = this->m_seed.value();
std::bitset<bits32> event_num_bits = evt_num, run_num_bits = run_num;
size_t str_hash = std::hash<std::string>{}(name);
size_t str_hash = std::hash<std::string>{}(name);
std::bitset<bitsSizeT> name_bits = str_hash;

std::bitset<bits64 + bits32 + bits32 + bitsSizeT> combined_bits;
Expand Down

0 comments on commit 1994069

Please sign in to comment.