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

Method Uint64

cryptorand/numbers.go:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (c *cryptoSource) Uint64() uint64 {
29 var n uint64
30 err := binary.Read(rand.Reader, binary.BigEndian, &n)
31 if err != nil {
32 c.err = err
33 }
34 return n
35}
36
37// secureRand returns a cryptographically secure random number generator.
38func secureRand() (*insecurerand.Rand, *cryptoSource) {

Callers 3

BenchmarkStringBigint20Function · 0.80
NodeIDFunction · 0.80
Int63Method · 0.80

Calls 1

ReadMethod · 0.65

Tested by 1

BenchmarkStringBigint20Function · 0.64