Refactored generator to accept seed size