Location: PHPKode > projects > GECO > random.php
<?php
function makeRandomPassword() {
  $salt = "120456780987654321237650123456789";
  srand((double)microtime()*1000000);
  	$i = 0;
  	while ($i <= 12) {
    		$num = rand() % 33;
    		$tmp = substr($salt, $num, 1);
    		$pass = $pass . $tmp;
    		$i++;
  	}
  	return $pass;
}


	
?>
Return current item: GECO