github.com/consensys/gnark-crypto@v0.14.0/internal/generator/crypto/hash/mimc/template/fuzz.go.tmpl (about) 1 2 3 const ( 4 fuzzInteresting = 1 5 fuzzNormal = 0 6 fuzzDiscard = -1 7 ) 8 9 func Fuzz(data []byte) int { 10 var s []byte 11 h := NewMiMC() 12 h.Write(data) 13 h.Sum(s) 14 return fuzzNormal 15 }