fix hash
This commit is contained in:
parent
247d0c2352
commit
08eccd2a35
Binary file not shown.
@ -126,7 +126,6 @@ void generate_folder_code(const std::string& source, const std::string& destfold
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "xxhash.hpp"
|
||||
)cpp";
|
||||
cpp << "#include \"" << hppname << "\"\n";
|
||||
cpp << "namespace " << ns << " {\n";
|
||||
@ -169,7 +168,7 @@ bool recreate_tree(std::string destination_folder) {
|
||||
std::ifstream in(outpath, std::ios::binary);
|
||||
std::ostringstream oss; oss << in.rdbuf();
|
||||
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;
|
||||
hex << std::hex << std::setw(16) << std::setfill('0') << h;
|
||||
existing_hash = hex.str();
|
||||
|
Loading…
x
Reference in New Issue
Block a user