github.com/MontFerret/ferret@v0.18.0/pkg/drivers/cdp/events/helpers.go (about)

     1  package events
     2  
     3  import (
     4  	"hash/fnv"
     5  )
     6  
     7  func New(name string) ID {
     8  	h := fnv.New32a()
     9  
    10  	h.Write([]byte(name))
    11  
    12  	return ID(h.Sum32())
    13  }