From cf5310624b8e07dffa540944debfacefef7ad9fd Mon Sep 17 00:00:00 2001 From: Michael Steindorfer Date: Wed, 1 Dec 2021 12:50:01 +0100 Subject: [PATCH] [Capsule] Use provided `hasher` argument --- Sources/Capsule/HashMap+Hashable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Capsule/HashMap+Hashable.swift b/Sources/Capsule/HashMap+Hashable.swift index a597fe0b..ee34e098 100644 --- a/Sources/Capsule/HashMap+Hashable.swift +++ b/Sources/Capsule/HashMap+Hashable.swift @@ -14,7 +14,7 @@ extension HashMap: Hashable where Value: Hashable { public func hash(into hasher: inout Hasher) { var commutativeHash = 0 for (key, value) in self { - var elementHasher = Hasher() + var elementHasher = hasher elementHasher.combine(key) elementHasher.combine(value) commutativeHash ^= elementHasher.finalize()