Skip to content

Commit 25d0ffe

Browse files
committed
doc: document new hash/maphash package
Update #36878 Update #28322 Change-Id: I793c7c4dbdd23fdecd715500e90b7cc0cbe4cea5 Reviewed-on: https://go-review.googlesource.com/c/go/+/217099 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent b8dd33b commit 25d0ffe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/go1.14.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,13 @@ <h2 id="library">Core library</h2>
432432
<dl id="hash/maphash"><dt><a href="/pkg/hash/maphash">hash/maphash</a></dt>
433433
<dd>
434434
<p><!-- CL 186877 -->
435-
TODO: <a href="https://golang.org/cl/186877">https://golang.org/cl/186877</a>: add hashing package for bytes and strings
435+
This new package provides hash functions on byte sequences.
436+
These hash functions are intended to be used to implement hash tables or
437+
other data structures that need to map arbitrary strings or byte
438+
sequences to a uniform distribution of integers.
439+
</p>
440+
<p>
441+
The hash functions are collision-resistant but not cryptographically secure.
436442
</p>
437443

438444
</dl><!-- hash/maphash -->

0 commit comments

Comments
 (0)