]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document new hash/maphash package
authorKeith Randall <khr@golang.org>
Thu, 30 Jan 2020 18:49:12 +0000 (10:49 -0800)
committerKeith Randall <khr@golang.org>
Fri, 31 Jan 2020 00:36:45 +0000 (00:36 +0000)
Update #36878
Update #28322

Change-Id: I793c7c4dbdd23fdecd715500e90b7cc0cbe4cea5
Reviewed-on: https://go-review.googlesource.com/c/go/+/217099
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.14.html

index 790a8de44727cc59e75739505616fd75d658b94c..1f13f227b3434f68f8635400bc99e58143b29ea7 100644 (file)
@@ -432,7 +432,13 @@ TODO
 <dl id="hash/maphash"><dt><a href="/pkg/hash/maphash">hash/maphash</a></dt>
   <dd>
     <p><!-- CL 186877 -->
-      TODO: <a href="https://golang.org/cl/186877">https://golang.org/cl/186877</a>: add hashing package for bytes and strings
+      This new package provides hash functions on byte sequences.
+      These hash functions are intended to be used to implement hash tables or
+      other data structures that need to map arbitrary strings or byte
+      sequences to a uniform distribution of integers.
+    </p>
+    <p>
+      The hash functions are collision-resistant but not cryptographically secure.
     </p>
 
 </dl><!-- hash/maphash -->