MCPcopy Create free account
hub / github.com/breck7/scroll / murmurHash

Method murmurHash

external/.scrollLibs.js:16043–16051  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16041 return this._subparticlesToString(indentCount)
16042 }
16043 get murmurHash() {
16044 const str = this.toString()
16045 let h1 = 0xdeadbeef
16046 for (let i = 0; i < str.length; i++) {
16047 const char = str.charCodeAt(i)
16048 h1 = Math.imul(h1 ^ char, 0x5bd1e995)
16049 }
16050 return (h1 >>> 0).toString(16)
16051 }
16052 // todo: implement
16053 _getChildJoinCharacter() {
16054 return "\n"

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected