Skip to content

Commit

Permalink
hash/maphash: mention that hash values do not persist in package docs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ianlancetaylor committed Feb 11, 2020
1 parent 25da21d commit 1c241d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/go1.14.html
Expand Up @@ -616,6 +616,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<p> <p>
The hash functions are collision-resistant but not cryptographically secure. The hash functions are collision-resistant but not cryptographically secure.
</p> </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> </dd>
</dl><!-- hash/maphash --> </dl><!-- hash/maphash -->


Expand Down
3 changes: 3 additions & 0 deletions src/hash/maphash/maphash.go
Expand Up @@ -9,6 +9,9 @@
// //
// The hash functions are collision-resistant but not cryptographically secure. // The hash functions are collision-resistant but not cryptographically secure.
// (See crypto/sha256 and crypto/sha512 for cryptographic use.) // (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 package maphash


import "unsafe" import "unsafe"
Expand Down

0 comments on commit 1c241d2

Please sign in to comment.