]> Cypherpunks.ru repositories - gostls13.git/commitdiff
hash/maphash: mention that hash values do not persist in package docs
authorIan Lance Taylor <iant@golang.org>
Thu, 6 Feb 2020 19:18:22 +0000 (11:18 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 11 Feb 2020 05:55:11 +0000 (05:55 +0000)
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>
doc/go1.14.html
src/hash/maphash/maphash.go

index 5f7366616160d75ebec42d12dbe15dca5a03b311..d5ad07754a8309d186540c84e1c7871d87ea8bc3 100644 (file)
@@ -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 -->
 
index 3f406e9db634e629d07e8e07f750140507a69931..3c0fc3628a8dfce4602cbf552b07568e0a9fa274 100644 (file)
@@ -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"