Particle Hair spazzing out

So, I was doing a test for a hair particle system so i quickly set up an easy hairstyle and material and rendered. But I had encountered a problem. This was the hair in the viewport:



And then I pressed render and this happened:


The hair decided to spazz out and if i go back to the viewport, the hair is still messed up and going in random directions.
Please help if you have any ideas on how to fix this.