hashString creates a deterministic hash from a string using FNV-1a algorithm This ensures the same input always produces the same hash value
(s string)
| 37 | // hashString creates a deterministic hash from a string using FNV-1a algorithm |
| 38 | // This ensures the same input always produces the same hash value |
| 39 | func hashString(s string) uint64 { |
| 40 | h := fnv.New64a() |
| 41 | h.Write([]byte(s)) |
| 42 | return h.Sum64() |
| 43 | } |
no test coverage detected