math/rand.Int31
standard libraryThe 1562nd most-called standard-library function by production calls. Called 626 times across 52 modules; 394 of those run outside tests and generated code.
- prod calls
- 394
- non-test, non-generated
- all calls
- 626
- total callsites
- modules
- 52
- distinct callers
- in loop
- 1%
- of prod calls
- in tests
- 37%
- 232 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into Int31 from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 7 2%
- NATS 3 <1%
- Dgraph 2 <1%
- Caddy 1 <1%
- Nomad 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 626, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
sigs.k8s.io/external-dns @v0.21.0
provider/coredns/coredns.go:425
in loop - in loop
-
sigs.k8s.io/external-dns @v0.21.0
provider/coredns/coredns.go:473
in loop -
cilium/dns @v1.1.50
in loop test - in loop test
-
etcd-io/etcd @v2.3.8+incompatible
in loop test - in loop test
-
XTLS/Xray-core @v1.260327.0
in loop test - in loop test
-
coreos/etcd @v2.3.8+incompatible
in loop test - in loop test
top callers
The modules that reach for it
The modules that call Int31 most in this snapshot.
- github.com/temporalio/temporal24940%
- go.temporal.io/server24940%
- github.com/cadence-workflow/cadence183%
- github.com/uber/cadence183%
- github.com/containernetworking/plugins6<1%
siblings
More from math/rand
The other most-called functions in this package. See all →