]> Cypherpunks repositories - gostls13.git/commit
runtime: use per-map hash seeds
authorDamian Gryski <dgryski@gmail.com>
Tue, 31 Jan 2012 05:37:03 +0000 (00:37 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 31 Jan 2012 05:37:03 +0000 (00:37 -0500)
commit85aeeadaecbe48ecf0be44f030c06feb85e71eab
tree227fdc5f0c6760b607787d45ef01882429d4a845
parent4b2dfd6c2cf9caade6702cede4a9424f4d308fc8
runtime: use per-map hash seeds

This patch adds a hash seed to the Hmap struct.  Each seed is
initialized by runtime.fastrand1().  This is the first step of a
solution to issue 2630.  Fastrand1 still needs to be updated to provide
us with actually random bits.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5599046
src/pkg/runtime/hashmap.c