The common pwgen utility supports a
useful feature for use in public: generating a "screenful" of multiple
passwords, letting the user choose one before clearing the terminal.
This helps mitigate shoulder-surfing.
This isn't a "serious" security measure; I'd categorize it as being similar to a simple screen locker. Enough to save you from some embarrassment or an immature person nearby, but not a competent attacker.
I don't think I'll include this feature, but if other people find it
useful I just might.
pwgen is such a common utility that it might make
sense to support some compatibility, even if it means adding a
near-useless feature like this.