public static function salts($length)
    {
        $chars = array_merge(range(0, 9), range('a', 'z'), range('A', 'Z'));
        $stringlength = count($chars); //Used Count because its array now
        $randomString = '';
        for ($i = 0; $i < $length; $i++) {
            $randomString .= $chars[rand(0, $stringlength - 1)];
        }

        return $randomString;
    }
public static function salts($length)
    {
        $chars = array_merge(range(0, 9), range('a', 'z'), range('A', 'Z'));
        $stringlength = count($chars); //Used Count because its array now
        $randomString = '';
        for ($i = 0; $i < $length; $i++) {
            $randomString .= $chars[rand(0, $stringlength - 1)];
        }

        return $randomString;
    }
public static function salts ( $ length ) { $ chars = array_merge ( range ( 0 , 9 ) , range ( 'a' , 'z' ) , range ( 'A' , 'Z' ) ) ; $ stringlength = count ( $ chars ) ; //Used Count because its array now $ randomString = '' ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ randomString .= $ chars [ rand ( 0 , $ stringlength - 1 ) ] ; } return $ randomString ; }
generate salts for files.

@param (int) $length Length of salts.

@since 1.0.0

@return string
generate salts for files .