15 ms·
> you normally hash the id/content of the thing the random number /is/ the id. You can think of it as the unique address of the object in some other memory map
by gpderetta 9y ago
> you normally hash the id/content of the thing
the random number /is/ the id. You can think of it as the unique address of the object in some other memory mapping.
The hash function just happens to be the identity function in this case.
- sfink 9y agoNo it isn't. This is not a unique id. Two different objects could easily have the same hash value. People are mixing up the mathematical term "identity function", meaning a function that maps its input directly to its output, with object identity. I have never heard this usage of the phrase, as in a function that takes an object identity as input.