presto-hive/src/main/java/io/prestosql/plugin/hive/util/HiveBucketingV1.java/HiveBucketingV1/hashBytes
class HiveBucketingV1:    private static int hashBytes(int initialValue, Slice bytes)
    {
        int result = initialValue;
        for (int i = 0; i < bytes.length(); i++) {
            result = result * 31 + bytes.getByte(i);
        }
        return result;
    }