MCPcopy Create free account
hub / github.com/YGYOOO/WorldX / hashString

Function hashString

client/src/systems/MapManager.ts:688–695  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

686}
687
688function hashString(value: string): number {
689 let hash = 0;
690 for (let i = 0; i < value.length; i++) {
691 hash = (hash << 5) - hash + value.charCodeAt(i);
692 hash |= 0;
693 }
694 return hash;
695}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected