#include #include #include #include #include #include "utils.hpp" std::string int_to_hex( u64 i ) { std::stringstream stream; stream << "0x" << std::setfill ('0') << std::setw(16) << std::hex << i; return stream.str(); } u64 fnv1a(std::string s) { u64 hash = 0xCBF29CE484222325LL; for(char& c : s) { hash ^= u64(c); hash *= 0x100000001B3LL; } return hash; }