Standard library / hash/maphash
hash/maphash.Seed
Opaque process-local seed selects the hash function. Share initialized seeds between independent Hash objects; do not persist or compare results across processes. Zero Seed is invalid. This is not a cryptographic authentication primitive. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type Seed struct { // Has unexported fields.}Working Example
Example Snippetgo
package main
import ( "fmt" "hash/maphash")
func main() { s := maphash.MakeSeed() fmt.Println(maphash.String(s, "hello") == maphash.Bytes(s, []byte("hello")))}