diff options
author | joe <joe@jerkface.net> | 2017-11-03 23:24:11 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-11-03 23:24:11 -0400 |
commit | a2ab874ed45dcaba3e063b0b55ab1d0a05a17158 (patch) | |
tree | 98596c6f20635bc9261d4dd6d1d371b4f4fc7ca1 /src/Network/Tox | |
parent | fd7327e8974aa6a79a6be07005223233d107dfb0 (diff) |
Changed NodeId hash function.
Diffstat (limited to 'src/Network/Tox')
-rw-r--r-- | src/Network/Tox/NodeId.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Tox/NodeId.hs b/src/Network/Tox/NodeId.hs index 00b572f2..2ad17616 100644 --- a/src/Network/Tox/NodeId.hs +++ b/src/Network/Tox/NodeId.hs | |||
@@ -147,7 +147,7 @@ instance S.Serialize NodeId where | |||
147 | put nid = putPublicKey $ id2key nid | 147 | put nid = putPublicKey $ id2key nid |
148 | 148 | ||
149 | instance Hashable NodeId where | 149 | instance Hashable NodeId where |
150 | hashWithSalt salt (NodeId key) = salt `xor` fromIntegral (byteSwap64 $ head key) | 150 | hashWithSalt salt (NodeId key) = hashWithSalt salt (head key) |
151 | 151 | ||
152 | -- instance FiniteBits NodeId where finiteBitSize _ = 256 | 152 | -- instance FiniteBits NodeId where finiteBitSize _ = 256 |
153 | 153 | ||