summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/MapLike.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/collection/MapLike.scala')
-rw-r--r--src/library/scala/collection/MapLike.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/scala/collection/MapLike.scala b/src/library/scala/collection/MapLike.scala
index ce78fb705a..0d012d01b7 100644
--- a/src/library/scala/collection/MapLike.scala
+++ b/src/library/scala/collection/MapLike.scala
@@ -334,7 +334,9 @@ self =>
override /*PartialFunction*/
def toString = super[IterableLike].toString
- override def hashCode() = this map (_.##) sum
+ // This hash code must be symmetric in the contents but ought not
+ // collide trivially.
+ override def hashCode() = util.MurmurHash.symmetricHash(this,Map.hashSeed)
/** Compares two maps structurally; i.e. checks if all mappings
* contained in this map are also contained in the other map,