diff options
| author | Ian Lance Taylor <iant@golang.org> | 2013-01-04 07:53:42 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2013-01-04 07:53:42 -0800 |
| commit | 63bee953a2d3aea703de1f4980f557d2af645dc9 (patch) | |
| tree | effd8e5e201e594858f3139bb11cbb6c362b88b1 /src/pkg/runtime/runtime.h | |
| parent | c09649890fd48f9854120999a109ba968596a021 (diff) | |
| download | go-63bee953a2d3aea703de1f4980f557d2af645dc9.tar.xz | |
runtime: always incorporate hash seed at start of hash computation
Otherwise we can get predictable collisions.
R=golang-dev, dave, patrick, rsc
CC=golang-dev
https://golang.org/cl/7051043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 0c941f819b..a228b06e32 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -644,8 +644,8 @@ void runtime·freemcache(MCache*); void runtime·mallocinit(void); bool runtime·ifaceeq_c(Iface, Iface); bool runtime·efaceeq_c(Eface, Eface); -uintptr runtime·ifacehash(Iface); -uintptr runtime·efacehash(Eface); +uintptr runtime·ifacehash(Iface, uintptr); +uintptr runtime·efacehash(Eface, uintptr); void* runtime·malloc(uintptr size); void runtime·free(void *v); bool runtime·addfinalizer(void*, void(*fn)(void*), uintptr); |
