summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-11-03 23:24:11 -0400
committerjoe <joe@jerkface.net>2017-11-03 23:24:11 -0400
commita2ab874ed45dcaba3e063b0b55ab1d0a05a17158 (patch)
tree98596c6f20635bc9261d4dd6d1d371b4f4fc7ca1 /src/Network
parentfd7327e8974aa6a79a6be07005223233d107dfb0 (diff)
Changed NodeId hash function.
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/Tox/NodeId.hs2
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
149instance Hashable NodeId where 149instance 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