I call Files.hash(file, Hashing.goodFast32Hash(HASH_KEY));
Using the return value from that, I call "asInt()" on the HashCode object that is returned. So it's a signed integer value (negative values are just fine). And yes, HASH_KEY is the seed value passed to the function.
As a side note, 4 bytes of data are 4 bytes of data regardless of it being a signed or unsigned value. If you take your unsigned value and cast it to a signed value to get the signed representation, if the value is greater than the max positive value of a signed integer, it will be negative.
Mike
Using the return value from that, I call "asInt()" on the HashCode object that is returned. So it's a signed integer value (negative values are just fine). And yes, HASH_KEY is the seed value passed to the function.
As a side note, 4 bytes of data are 4 bytes of data regardless of it being a signed or unsigned value. If you take your unsigned value and cast it to a signed value to get the signed representation, if the value is greater than the max positive value of a signed integer, it will be negative.
Mike