Where did the name Onan come from?

Found in Genesis 38:9, Onan was the son of Judah who spilled his seed on the ground rather than impregnate his deceased brother's wife.