MCPcopy Create free account
hub / github.com/encodeous/nylon / randUint32

Function randUint32

polyamide/device/indextable.go:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func randUint32() (uint32, error) {
26 var integer [4]byte
27 _, err := rand.Read(integer[:])
28 // Arbitrary endianness; both are intrinsified by the Go compiler.
29 return binary.LittleEndian.Uint32(integer[:]), err
30}
31
32func (table *IndexTable) Init() {
33 table.Lock()

Callers 1

NewIndexForHandshakeMethod · 0.85

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected