NewTokenHasher returns a new hash.Hash64 for use with TokenForID.
()
| 73 | |
| 74 | // NewTokenHasher returns a new hash.Hash64 for use with TokenForID. |
| 75 | func NewTokenHasher() hash.Hash64 { |
| 76 | return fnv.New64() |
| 77 | } |
| 78 | |
| 79 | // TokenForID returns a token for use as a key in a hash map given a span ID and span kind. |
| 80 | // h and buffer (must be at least 4 bytes) are provided by the caller for reuse across calls |
no outgoing calls