aboutsummaryrefslogtreecommitdiff
path: root/src/hash
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-02-06 11:18:22 -0800
committerIan Lance Taylor <iant@golang.org>2020-02-11 05:55:11 +0000
commit1c241d28792fad017cbd64bae72ea3f3ee51e4df (patch)
tree72fd91b46fbe4df504f8b8fe28233baca9e898ea /src/hash
parent25da21ddc935f1af1b10361c52984ddaaade9265 (diff)
downloadgo-1c241d28792fad017cbd64bae72ea3f3ee51e4df.tar.gz
go-1c241d28792fad017cbd64bae72ea3f3ee51e4df.zip
hash/maphash: mention that hash values do not persist in package docs
Updates #36878 Fixes #37040 Change-Id: Ib0bd21481e5d9c3b3966c116966ecfe071243a24 Reviewed-on: https://go-review.googlesource.com/c/go/+/218297 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/maphash/maphash.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hash/maphash/maphash.go b/src/hash/maphash/maphash.go
index 3f406e9db6..3c0fc3628a 100644
--- a/src/hash/maphash/maphash.go
+++ b/src/hash/maphash/maphash.go
@@ -9,6 +9,9 @@
//
// The hash functions are collision-resistant but not cryptographically secure.
// (See crypto/sha256 and crypto/sha512 for cryptographic use.)
+//
+// The hash value of a given byte sequence is consistent within a
+// single process, but will be different in different processes.
package maphash
import "unsafe"