Skip to content

Commit

Permalink
Use = instead of () for assignments (for style)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 9, 2024
1 parent cc54034 commit 5302833
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 @@ -29,9 +29,9 @@ 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<bits32> event_num_bits(evt_num), run_num_bits(run_num);
std::bitset<bits32> event_num_bits = evt_num, run_num_bits = run_num;
size_t str_hash = std::hash<std::string>{}(name);
std::bitset<bitsSizeT> name_bits(str_hash);
std::bitset<bitsSizeT> name_bits = str_hash;

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

Expand Down

0 comments on commit 5302833

Please sign in to comment.