Hashing a 64-bit value into a 32-bit MAC address
问题 I'm looking into suggestions on how to convert a 64-bit die revision field into a 32-bit MAC address I can use a for a wireless application to avoid collisions. The die information is struct { uint32_t lot; uint16_t X_coordinate; uint16_t Y_coordinate; } I don't know the range of coordinates, but based on a few samples, I think the coordinates are limited to < 256. That effectly reduces the space by 2 bytes. But the lot number is fully populated. I'm going to try this (pseudocode to make it