Update Generator.php

When string length > 1 (5) and only one character ('a') has been given the correct return value should be a string with only that character ('aaaaa'). Ok sure there is nothing random about that, but that's more likely a case to throw a logic exception or something similar.