Random string generator couldn't generate strings that exceeded the number of available characters. This resolves that and allows for characters to show up more than once in the string itself.

This commit is contained in:
Josh Sherman 2012-07-22 21:43:49 -04:00
parent 9cd9304cf8
commit 761caf52cf

View file

@ -145,7 +145,7 @@ class String
for ($i = 0; $i < $length; $i++)
{
$string .= $characters[$i];
$string .= $characters[array_rand($characters)];
}
}