what does this code really do? Obviously it generates a password, but why? If we're in dev mode, but there is no, or unknown, dev key, this will generate a nonsense key: what happens when this key is used? What is the effect of setting this?