Fix Usage of a function in loops should be avoided

This commit is contained in:
raphi 2015-04-17 09:37:09 +00:00
parent ef8901e407
commit 6a115305a6
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ class CardCreator
$seed = $this->configration->seed;
mt_srand($seed);
for ($i = 0; $i < strlen($this->configration->keys); $i++) {
$number_of_keys = strlen($this->configration->keys);
for ($i = 0; $i < $number_of_keys; $i++) {
$prefix = '$' . ($i+1);
$equivalent = $chars[mt_rand(0, $char_count-1)];