Hash code setting