Undergraduate research discipline

Hi, I am an undergraduate student. I am wondering does the discipline of research matter to the major I am going to apply for graduate school? If I am a math major and wish to go for a CS degree, is it any better to do CS research instead of math research?Or are they both same?

In general, it is more important that you actually DO research rather and the field as an undergraduate. Of courses if you can find a research gig in CS, that would be more useful to you in the future as long as it is a good quality research experience.