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

Function Int63

cryptorand/numbers.go:45–48  ·  view source on GitHub ↗

Int64 returns a non-negative random 63-bit integer as a int64.

()

Source from the content-addressed store, hash-verified

43
44// Int64 returns a non-negative random 63-bit integer as a int64.
45func Int63() (int64, error) {
46 rng, cs := secureRand()
47 return rng.Int63(), cs.err
48}
49
50// Int63n returns a non-negative integer in [0,maxVal) as an int64.
51func Int63n(maxVal int64) (int64, error) {

Callers 4

WorkspaceAppStatFunction · 0.92
TestRandErrorFunction · 0.92
TestInt63Function · 0.92
NewConnFunction · 0.92

Calls 2

secureRandFunction · 0.85
Int63Method · 0.45

Tested by 2

TestRandErrorFunction · 0.74
TestInt63Function · 0.74