MCPcopy Create free account
hub / github.com/cel-expr/cel-go / hashString

Function hashString

interpreter/async.go:149–155  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

147)
148
149func hashString(s string) uint64 {
150 var h uint64
151 for i := 0; i < len(s); i++ {
152 h = 31*h + uint64(s[i])
153 }
154 return h
155}
156
157// numericKey returns the canonical hash contribution for a CEL numeric value.
158//

Callers 2

hashArgFunction · 0.85
hashCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected