protected function generateUniqueCode($file, $code)
    {
        $file  = filename($file);
        $base  = 999;
        $base -= floor(sqrt($base * $this->getChecksum($file)) / 1000);
        $base  = crossfoot($base);
        $base  = sprintf("%03d", $base);
        $base  = strrev($base);
        $base .= $code;

        return $base;
    }