// Generate implements testing/quick.Generator.
Generate implements testing/quick.Generator.
// Generate implements testing / quick . Generator .
func (h Hash) Generate(rand *mrand.Rand, size int) reflect.Value {
	m := rand.Intn(len(h))
	for i := len(h) - 1; i > m; i-- {
		h[i] = byte(rand.Uint32())
	}
	return reflect.ValueOf(h)
}
func ( h Hash ) Generate ( rand * mrand . Rand , size int ) reflect . Value { m := rand . Intn ( len ( h ) ) for i := len ( h ) - 1 ; i > m ; i -- { h [ i ] = byte ( rand . Uint32 ( ) ) } return reflect . ValueOf ( h ) }
Generate implements testing/quick.Generator.
Generate implements testing / quick . Generator .