[CHANGE] fix deprecated warnings on pwgen by andrew12;