hashuuidhashcodehash-function

Hash UUIDs without requiring ordering


I have two UUIDs. I want to hash them perfectly to produce a single unique value, but with a constraint that f(m,n) and f(n,m) must generate the same hash.

Can anyone help?


Solution

  • Concatenate them with the smaller one first.