crypto/rand.Read
standard libraryThe 557th most-called standard-library function by production calls. Called 3,220 times across 427 modules; 1,364 of those run outside tests and generated code.
3% in production calls vs 2026-W37 (1,326 → 1,364)
- prod calls
- 1,364
- non-test, non-generated
- all calls
- 3,220
- total callsites
- modules
- 427
- distinct callers
- in loop
- 6%
- of prod calls
- in tests
- 56%
- 1,818 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.
estimate
Estimated relative cost
Roughly 0.01× the estimated relative cost of fmt.Sprintf . Benchmarked at 235.6 ns/op × 1,364 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into Read from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 31 2%
- containerd 29 2%
- Docker 28 2%
- Kubernetes 25 2%
- Vault 15 1%
where it's called
Callsites in the wild
12 representative callsites of 3,220, prioritizing in-loop and non-test usage. We link to source, never display it.
-
miekg/dns @v0.6.114
dnsutil/dnsutil.go:30
in loop - in loop
-
docker/docker @v28.5.2+incompatible
in loop -
etcd-io/etcd @v2.3.8+incompatible
in loop - in loop
- in loop
- in loop
- in loop
-
baidubce/bce-sdk-go @v0.9.276
in loop - in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Read most in this snapshot.
- github.com/cloudflare/circl1765%
- github.com/ginuerzh/gost1665%
- github.com/seaweedfs/seaweedfs913%
- github.com/apernet/quic-go903%
- github.com/lucas-clemente/quic-go903%
siblings
More from crypto/rand
The other most-called functions in this package. See all →