(s string)
| 147 | ) |
| 148 | |
| 149 | func 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 | // |