Committed by
Gerrit Code Review
change MAC address hash to reduce collisions
Change-Id: I0ec7b53edcfce27508b0ea862da63597aa0ad3fd
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -188,7 +188,7 @@ public class MacAddress { | ... | @@ -188,7 +188,7 @@ public class MacAddress { |
| 188 | 188 | ||
| 189 | @Override | 189 | @Override |
| 190 | public int hashCode() { | 190 | public int hashCode() { |
| 191 | - return Arrays.hashCode(this.address); | 191 | + return Long.hashCode(toLong()); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | @Override | 194 | @Override | ... | ... |
-
Please register or login to post a comment