Michael Long
Sep 15, 2023

--

A UIUID is a 128 bit unique number. A UUID's hash value is a 64 bit representation of that number.

Obviously we're losing information in the hash function. So it could well be possible for two UUIDs to hash to the same value.

Or consider a rudimentary string hash that simply sums the value of each character in a string. Do so and "abc" would generate a different hash than "xyzzy", but the same as "cab".

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet