math/rand.NewSource
standard libraryThe 965th most-called standard-library function by production calls. Called 8,643 times across 389 modules; 681 of those run outside tests and generated code.
- prod calls
- 681
- non-test, non-generated
- all calls
- 8,643
- total callsites
- modules
- 389
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 92%
- 7,962 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 NewSource from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 47 7%
- Kubernetes 35 5%
- MinIO 33 5%
- Grafana 31 5%
- Uber Go 16 2%
where it's called
Callsites in the wild
12 representative callsites of 8,643, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cilium/ebpf @v0.22.0
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
- in loop
-
osrg/gobgp/v3 @v3.37.0
in loop -
seaweedfs/seaweedfs @v0.0.0-20260805044234-3c549b33ab8d
unmaintained/stress_filer_upload/bench_filer_upload/bench_filer_upload.go:48 ↗
in loop - in loop
-
grafana/mimir @v1.10.0
in loop -
kubernetes/kubernetes @master
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/unstructured.go:86 ↗
in loop -
grafana/dskit @v0.0.0-20260804161922-ca94e9ff1c22
in loop
top callers
The modules that reach for it
The modules that call NewSource most in this snapshot.
- github.com/gogo/protobuf5,99669%
- github.com/cockroachdb/cockroach1271%
- github.com/VictoriaMetrics/VictoriaMetrics1131%
- github.com/VictoriaMetrics/VictoriaLogs1121%
- github.com/kubernetes/kubernetes971%
siblings
More from math/rand
The other most-called functions in this package. See all →