The best is a big quantity of quality links
OK, both has impact on the SEO. Google and other search engines take into account many factors. One of the is the quantity of the links, one of them the quality (the PR of the page linking to you) and other is the diversity. It is natural to have some links from high PR websites and some links from low PR domains.