brake pedal too high

I might be able to cut the end off then grind it round instead of doing any welding. I'm just wondering what the o ring on the rod is for.

The O ring holds the rod into the master cylinder, it prevents the push rod from being easily pulled out (and falling out) of the master cyl.