summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/ScalaRunTime.scala
diff options
context:
space:
mode:
authorAleksandar Prokopec <axel22@gmail.com>2012-06-07 14:26:35 +0200
committerAleksandar Prokopec <axel22@gmail.com>2012-06-07 19:21:45 +0200
commit881641f83461b5fc23ab25d1efa08b7a760a3363 (patch)
tree5ed07883b14c77d6020c2e99e50f3407587495e6 /src/library/scala/runtime/ScalaRunTime.scala
parent6cdb6b0299cb917ac3df9e39aa932bacdc31faf9 (diff)
downloadscala-881641f83461b5fc23ab25d1efa08b7a760a3363.tar.gz
scala-881641f83461b5fc23ab25d1efa08b7a760a3363.tar.bz2
scala-881641f83461b5fc23ab25d1efa08b7a760a3363.zip
Add the first iteration of the `util.hashing` package.
Move `MurmurHash3` to `util.hashing`. Make the `class` private and retain a public companion `object`, and put the `MurmurHash3.Hashing` implementations for various types in the companion. Add a method which composes `ByteswapHashing` with some other hashing. Rename `hashOf` to `hash`. Fix chi-square test in a test-case. Review by @jsuereth. Moved a failing test that seems to use some other library version to pending.
Diffstat (limited to 'src/library/scala/runtime/ScalaRunTime.scala')
-rw-r--r--src/library/scala/runtime/ScalaRunTime.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/ScalaRunTime.scala b/src/library/scala/runtime/ScalaRunTime.scala
index 4c5e0e408b..5cd301a0fe 100644
--- a/src/library/scala/runtime/ScalaRunTime.scala
+++ b/src/library/scala/runtime/ScalaRunTime.scala
@@ -199,7 +199,7 @@ object ScalaRunTime {
def _toString(x: Product): String =
x.productIterator.mkString(x.productPrefix + "(", ",", ")")
- def _hashCode(x: Product): Int = scala.util.MurmurHash3.productHash(x)
+ def _hashCode(x: Product): Int = scala.util.hashing.MurmurHash3.productHash(x)
/** A helper for case classes. */
def typedProductIterator[T](x: Product): Iterator[T] = {