<32; $i++) { // this is the original line for ($i = 0; $i < $numTimes; $i++) { $seed .= chr(mt_rand(0, 255)); } $uncpass = phonic64_encode($seed); $midpass = preg_replace("/[\s\.\!\?\;\-\,\r\n]/", "", $uncpass); $finpass = strtolower(substr($midpass, 0, $len - mt_rand(1, 3))); while (strlen($finpass) < $len) { $finpass .= mt_rand(0, 9); } return $finpass; } ?>