Changed hash2Float to hash2Double