math/rand.Shuffle
standard libraryThe 6154th most-called standard-library function by production calls. Called 234 times across 80 modules; 96 of those run outside tests and generated code.
- prod calls
- 96
- non-test, non-generated
- all calls
- 234
- total callsites
- modules
- 80
- distinct callers
- in loop
- 11%
- of prod calls
- in tests
- 59%
- 138 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 Shuffle from notable Go projects. Open one on the map to see what else it hammers.
- Grafana 8 8%
- NATS 8 8%
- CockroachDB 5 5%
- Cortex 5 5%
- HashiCorp 3 3%
where it's called
Callsites in the wild
12 representative callsites of 234, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
DNSCrypt/dnscrypt-proxy @v0.0.0-20260801091651-c3ba78fac8a3
in loop - in loop
-
seaweedfs/seaweedfs @v0.0.0-20260805044234-3c549b33ab8d
unmaintained/stress_filer_upload/stress_filer_upload_actual/stress_filer_upload.go:58 ↗
in loop -
minio/minio @v0.0.0-20260212201848-7aac2a2c5b7c
in loop - in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
DNSCrypt/dnscrypt-proxy @v0.0.0-20260801091651-c3ba78fac8a3
in loop -
minio/minio @v0.0.0-20260212201848-7aac2a2c5b7c
in loop - in loop
- in loop test
top callers
The modules that reach for it
The modules that call Shuffle most in this snapshot.
- github.com/nats-io/nats-server/v22310%
- github.com/weaviate/weaviate146%
- github.com/cilium/statedb136%
- github.com/seaweedfs/seaweedfs94%
- github.com/temporalio/temporal94%
siblings
More from math/rand
The other most-called functions in this package. See all →