()
| 49 | } |
| 50 | |
| 51 | func (d *DeterministicIDGenerator) NewID() backend.UUID { |
| 52 | return backend.UUID(newDeterministicID(d.hash, d.buf, d.seq.Inc())) |
| 53 | } |
| 54 | |
| 55 | func newDeterministicID(hash hash.Hash, data []byte, seq uint64) uuid.UUID { |
| 56 | // update last 8 bytes of data with seq |