MCPcopy
hub / github.com/cloudflare/cloudflared / switchThreshold

Function switchThreshold

connection/protocol.go:262–266  ·  view source on GitHub ↗
(accountTag string)

Source from the content-addressed store, hash-verified

260}
261
262func switchThreshold(accountTag string) int32 {
263 h := fnv.New32a()
264 _, _ = h.Write([]byte(accountTag))
265 return int32(h.Sum32() % 100) // nolint: gosec
266}

Callers 1

NewProtocolSelectorFunction · 0.70

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected