Replace misleading use of SecureRandom for secrets.