MCPcopy Create free account
hub / github.com/git-bug/git-bug / makeNonce

Function makeNonce

entity/dag/operation.go:128–135  ·  view source on GitHub ↗
(len int)

Source from the content-addressed store, hash-verified

126}
127
128func makeNonce(len int) []byte {
129 result := make([]byte, len)
130 _, err := rand.Read(result)
131 if err != nil {
132 panic(err)
133 }
134 return result
135}
136
137func IdOperation(op Operation, base *OpBase) entity.Id {
138 if base.id == "" {

Callers 1

NewOpBaseFunction · 0.70

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected