MCPcopy
hub / github.com/txthinking/brook / NextNonce

Function NextNonce

nonce.go:19–23  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

17import "encoding/binary"
18
19func NextNonce(b []byte) {
20 i := binary.LittleEndian.Uint64(b[:8])
21 i += 1
22 binary.LittleEndian.PutUint64(b[:8], i)
23}

Callers 4

WriteMethod · 0.85
ReadMethod · 0.85
WriteMethod · 0.85
ReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected