public static function generateSalt($length = 32)
	{
		$salt = '';

		for($i = 0; $i < $length; ++$i)
			$salt .= chr(rand(0,127));

		return $salt;
	}
public static function generateSalt($length = 32)
	{
		$salt = '';

		for($i = 0; $i < $length; ++$i)
			$salt .= chr(rand(0,127));

		return $salt;
	}
public static function generateSalt ( $ length = 32 ) { $ salt = '' ; for ( $ i = 0 ; $ i < $ length ; ++ $ i ) $ salt .= chr ( rand ( 0 , 127 ) ) ; return $ salt ; }
Generates a random string which can be used to salt the password

@param int $length

@return string
Generates a random string which can be used to salt the password