Random fixes to gen-totp.