func()

in model/diversion_bucket.go [95:107]


func (b *UidHashDiversionBucket) Match(experimentContext *ExperimentContext) bool {

	md5 := md5.Sum([]byte(experimentContext.Uid))
	hash := fnv.New64()
	hash.Write(md5[:])

	mod := hash.Sum64() % uint64(b.bucketCount)
	if _, found := b.buckets[int(mod)]; found {
		return true
	}

	return false
}