MCPcopy Index your code
hub / github.com/coder/coder / secureRand

Function secureRand

cryptorand/numbers.go:38–42  ·  view source on GitHub ↗

secureRand returns a cryptographically secure random number generator.

()

Source from the content-addressed store, hash-verified

36
37// secureRand returns a cryptographically secure random number generator.
38func secureRand() (*insecurerand.Rand, *cryptoSource) {
39 var cs cryptoSource
40 //nolint:gosec
41 return insecurerand.New(&cs), &cs
42}
43
44// Int64 returns a non-negative random 63-bit integer as a int64.
45func Int63() (int64, error) {

Callers 4

Int63Function · 0.85
Int63nFunction · 0.85
IntnFunction · 0.85
Float64Function · 0.85

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected