(note for people who may not know pwgen : it outputs 20 lines of 8 random passwords)
Unfortunately, it only does this if STDOUT is a TTY. If it's a pipe, then it outputs a single 8 character long password. So I'm afraid you've been generating rather low entropy passwords by piping the output of pwgen through md5sum.
You can confirm this by piping pwgen through cat: pwgen | cat
Most annoying trying to use "watch" or "less" and have the color work. "watch --color juju status --color", ahh. :-)
However, more recently I've grown skeptical. It leads to surprises, and if a person isn't familiar with the finer details of file descriptors, they may wonder why piping a program changes its behavior. I think this example of someone shooting himself in the foot with pwgen has convinced me never to do this again.
Anyway, as far as password creation goes, here's another alternative based on more standard tools:
head -c NN /dev/urandom | base32 # or base64, or md5sum if you so prefer