mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-20 01:31:42 +02:00
Merge commit '533b18257b7da879a5de39f5d6437041e0e42c39' into concedo_experimental
# Conflicts: # CMakeLists.txt # examples/gguf-hash/CMakeLists.txt # examples/gguf-hash/gguf-hash.cpp # scripts/sync_vendor.py # tools/mtmd/CMakeLists.txt # vendor/hash/rotate-bits/rotate-bits.h # vendor/hash/sha1/sha1.c # vendor/hash/sha1/sha1.h # vendor/hash/sha256/sha256.c # vendor/hash/sha256/sha256.h # vendor/hash/xxhash/xxhash.c # vendor/hash/xxhash/xxhash.h
This commit is contained in:
@@ -259,6 +259,8 @@ int main(int argc, char ** argv) {
|
||||
}
|
||||
cpp += fmt("static const unsigned char asset_%d_data[] = {", i);
|
||||
append_bytes_hex(cpp, bytes);
|
||||
|
||||
// note: this is a simple hash for cache busting, not a cryptographic hash; fnv is enough here
|
||||
const auto hash = fnv_hash(bytes.data(), bytes.size());
|
||||
|
||||
cpp += fmt("};\nstatic const std::size_t asset_%d_size = %zu;\n",
|
||||
|
||||
Reference in New Issue
Block a user