MCPcopy Create free account
hub / github.com/AdRoll/baker / targetToInt

Function targetToInt

examples/advanced/main.go:56–58  ·  view source on GitHub ↗
(r baker.Record)

Source from the content-addressed store, hash-verified

54}
55
56func targetToInt(r baker.Record) uint64 {
57 return simpleHash(r, Target)
58}
59
60func simpleHash(r baker.Record, idx baker.FieldIndex) uint64 {
61 f := fnv.New64()

Callers

nothing calls this directly

Calls 1

simpleHashFunction · 0.70

Tested by

no test coverage detected