Argonne National Laboratory's broken implementation of SHA1
blog.n01se.net
blog.n01se.net
That is quite the generalization. Out of the same national lab comes MPICH for example which is installed on nearly every large supercomputer that needs a message passing library. It's very robust, portable, performant, and popular.
http://www.mcs.anl.gov/research/projects/mpich2/
National labs are far more like normal companies than you might imagine. The software efforts are done by small teams that vary in their aims, funding, talent, competitional pressure, and enthusiasm. Pretty much like any other software environment...
Take a look at the error rates discussed in this story about NASA and I don't know how you could generalize that "government employees build crappy software": http://www.fastcompany.com/node/28121/print
Trite lesson we (do not) learn from this: beware trivial tasks that don't seem worth the trouble of testing.
No bait intended. Thought it might spur some discussion. I learn a great deal from anything crypto-related on HN.