MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / fnvHashBytes

Function fnvHashBytes

dashboard/build.shared.mjs:415–421  ·  view source on GitHub ↗
(hash, bytes)

Source from the content-addressed store, hash-verified

413}
414
415function fnvHashBytes(hash, bytes) {
416 for (const byte of bytes) {
417 hash ^= BigInt(byte);
418 hash = (hash * FNV_PRIME) & FNV_MASK;
419 }
420 return hash;
421}
422
423function normalizedSourcePath(file) {
424 return path.join("dashboard", file).split(path.sep).join("/");

Callers 1

dashboardSourceStampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected