15 const std::string truncated_hash_hex = md5.
hex_digest().substr(0, 8);
16 std::stringstream hex_to_int;
17 uint32_t truncated_hash_int = 0;
18 hex_to_int << std::hex << truncated_hash_hex;
19 hex_to_int >> truncated_hash_int;
20 return truncated_hash_int;
31 std::stringstream ss1;
33 std::stringstream ss2;
35 std::stringstream ss_concatonate;
36 ss_concatonate << ss2.str() << ss1.str();
solar's public-domain MD5, wrapped for C++.
std::string hex_digest() const
Base class for Trigger configuration data and wrapper around underlying representation.
void printRaw(std::ostream &os=std::cout) const
Forward iterator to traverse the main components of the trigger configuration.
uint32_t truncatedHash(const DataStructure &dataStructure)
Function to compute a truncated MD5 hash for a JSON file.
uint32_t doTruncatedHash(const std::stringstream &ss)