diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-02-06 11:18:22 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-02-11 05:55:11 +0000 |
commit | 1c241d28792fad017cbd64bae72ea3f3ee51e4df (patch) | |
tree | 72fd91b46fbe4df504f8b8fe28233baca9e898ea | |
parent | 25da21ddc935f1af1b10361c52984ddaaade9265 (diff) | |
download | go-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>
-rw-r--r-- | doc/go1.14.html | 4 | ||||
-rw-r--r-- | src/hash/maphash/maphash.go | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/go1.14.html b/doc/go1.14.html index 5f73666161..d5ad07754a 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -616,6 +616,10 @@ appropriately.) <p> The hash functions are collision-resistant but not cryptographically secure. </p> + <p> + The hash value of a given byte sequence is consistent within a + single process, but will be different in different processes. + </p> </dd> </dl><!-- hash/maphash --> 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" |