]> git.mxchange.org Git - hub.git/commitdiff
Used str_pad() instead of prependStringToString()
authorRoland Häder <roland@mxchange.org>
Tue, 18 Sep 2012 13:54:22 +0000 (13:54 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 18 Sep 2012 13:54:22 +0000 (13:54 +0000)
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;