I can't speak to Friedman, but Hayek's views were more subtle than that (and so are mine, for what little it matters). He recognized many limitations on the rationality of economic actors; he advocated what today would probably be referred to as bounded rationality.
http://books.google.com/books?id=CdI9VRcn1SEC&pg=PA26&lpg=PA...
http://books.google.com/books?id=Dc1s6zB8Ee8C&pg=PA8&lpg=PA8...
http://www.palgraveconnect.com/pc/doifinder/10.1057/97811372... (same book)
http://www.georgesoros.com/interviews-speeches/entry/why_i_a...