use xxhash to generate material id