diff options
author | Jose <jose@zeroc.com> | 2012-08-10 19:05:05 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-08-10 19:05:05 +0200 |
commit | dac1de9cee466c49bb66d1fa3ff3e7f8ce74b41d (patch) | |
tree | e21599db79868ffc65be32b4dda2056af9e18b0b /java/src/Ice/ProxyIdentityKey.java | |
parent | Remove some more VC6 compiler fixes (diff) | |
download | ice-dac1de9cee466c49bb66d1fa3ff3e7f8ce74b41d.tar.bz2 ice-dac1de9cee466c49bb66d1fa3ff3e7f8ce74b41d.tar.xz ice-dac1de9cee466c49bb66d1fa3ff3e7f8ce74b41d.zip |
ICE-4702 - Poor hash algorithm
Diffstat (limited to 'java/src/Ice/ProxyIdentityKey.java')
-rw-r--r-- | java/src/Ice/ProxyIdentityKey.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/Ice/ProxyIdentityKey.java b/java/src/Ice/ProxyIdentityKey.java index a008ad63869..6bfe9b640ab 100644 --- a/java/src/Ice/ProxyIdentityKey.java +++ b/java/src/Ice/ProxyIdentityKey.java @@ -17,6 +17,7 @@ package Ice; * @see ProxyIdentityCompare * @see ProxyIdentityAndFacetCompare * @see ProxyIdentityFacetKey + * **/ public class ProxyIdentityKey { @@ -34,7 +35,9 @@ public class ProxyIdentityKey // Cache the identity and its hash code. // _identity = proxy.ice_getIdentity(); - _hashCode = _identity.hashCode(); + int h = 5381; + h = IceInternal.HashUtil.hashAdd(h, _identity); + _hashCode = h; } /** |