crypto/rand.Int
standard libraryThe 1670th most-called standard-library function by production calls. Called 583 times across 212 modules; 368 of those run outside tests and generated code.
- prod calls
- 368
- non-test, non-generated
- all calls
- 583
- total callsites
- modules
- 212
- distinct callers
- in loop
- 19%
- of prod calls
- in tests
- 37%
- 215 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 Int from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 41 11%
- HashiCorp 10 3%
- Go (golang.org/x) 9 2%
- Argo 7 2%
- containerd 7 2%
where it's called
Callsites in the wild
12 representative callsites of 583, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
containerd/stargz-snapshotter/estargz @v0.18.2
testutil.go:2327
in loop -
docker/distribution @v2.8.3+incompatible
in loop -
encr.dev @v1.57.13
pkg/words/funcs.go:15
in loop - in loop
-
gitea.dev @v1.27.1
modules/auth/password/password.go:105
in loop -
Binject/binjection @v0.0.0-20210701074423-605d46e35deb
in loop - in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Int most in this snapshot.
- github.com/cloudflare/circl8014%
- github.com/ethereum/go-ethereum214%
- github.com/kubernetes/kubernetes173%
- golang.org/x/crypto163%
- k8s.io/kubernetes112%
siblings
More from crypto/rand
The other most-called functions in this package. See all →