]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php
Used str_pad() instead of prependStringToString()
[hub.git] / application / hub / main / iterator / producer / keys / class_TestUnitKeyProducerIterator.php
index 75b057c3df5d737650c2caae2dff5e85f37dd1c7..6173af3ef7459a311a27033550e4e6e2e0376a46 100644 (file)
@@ -82,7 +82,7 @@ class TestUnitKeyProducerIterator extends BaseIterator implements Iterator {
                $current = $this->dec2asc($this->currentIteration);
 
                // Prepend more zeros
-               $current = $this->prependStringToString($current, chr(0), ($this->keyLength / 8));
+               $current = str_pad($current, ($this->keyLength / 8), chr(0), STR_PAD_LEFT);
 
                // Return it
                return $current;