This commit is contained in:
Your Name 2025-05-17 09:08:19 +12:00
parent 247d0c2352
commit 08eccd2a35
2 changed files with 1 additions and 2 deletions

Binary file not shown.

View File

@ -126,7 +126,6 @@ void generate_folder_code(const std::string& source, const std::string& destfold
#include <string> #include <string>
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
#include "xxhash.hpp"
)cpp"; )cpp";
cpp << "#include \"" << hppname << "\"\n"; cpp << "#include \"" << hppname << "\"\n";
cpp << "namespace " << ns << " {\n"; cpp << "namespace " << ns << " {\n";
@ -169,7 +168,7 @@ bool recreate_tree(std::string destination_folder) {
std::ifstream in(outpath, std::ios::binary); std::ifstream in(outpath, std::ios::binary);
std::ostringstream oss; oss << in.rdbuf(); std::ostringstream oss; oss << in.rdbuf();
std::string data = oss.str(); std::string data = oss.str();
uint64_t h = XXH3_64bits(data.data(), data.size()); uint64_t h = fnv1a_64(data.data(), data.size());
std::ostringstream hex; std::ostringstream hex;
hex << std::hex << std::setw(16) << std::setfill('0') << h; hex << std::hex << std::setw(16) << std::setfill('0') << h;
existing_hash = hex.str(); existing_hash = hex.str();