Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
262
func
switchThreshold(accountTag string) int32 {
263
h := fnv.New32a()
264
_, _ = h.Write([]byte(accountTag))
265
return
int32(h.Sum32() % 100)
// nolint: gosec
266
}
Callers
1
NewProtocolSelector
Function · 0.70
Calls
1
Write
Method · 0.65
Tested by
no test coverage detected