Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(604)

Issue 5599046: code review 5599046: runtime: Update hash functions to use a hidden seed ins... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by dgryski
Modified:
13 years, 3 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

runtime: Update hash functions to use a hidden seed instead of 0. 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.

Patch Set 1 #

Patch Set 2 : diff -r 50c95c1dfa5b http://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0700956e0077 http://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M src/pkg/runtime/hashmap.c View 1 5 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 3
dgryski
Hello golang-dev@googlegroups.com, I'd like you to review this change to http://go.googlecode.com/hg/
13 years, 3 months ago (2012-01-30 19:28:57 UTC) #1
rsc
LGTM Thanks.
13 years, 3 months ago (2012-01-31 05:30:31 UTC) #2
rsc
13 years, 3 months ago (2012-01-31 05:37:02 UTC) #3
*** Submitted as 18b283fbffae ***

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
http://codereview.appspot.com/5599046

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b