Onan Generator Codes