MCPcopy
hub / github.com/grafana/tempo / newDeterministicID

Function newDeterministicID

modules/blockbuilder/util/id.go:55–60  ·  view source on GitHub ↗
(hash hash.Hash, data []byte, seq uint64)

Source from the content-addressed store, hash-verified

53}
54
55func newDeterministicID(hash hash.Hash, data []byte, seq uint64) uuid.UUID {
56 // update last 8 bytes of data with seq
57 binary.LittleEndian.PutUint64(data[len(data)-8:], seq)
58
59 return uuid.NewHash(hash, ns, data, sha1Version5)
60}

Callers 1

NewIDMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected