public function name(FileInterface $file)
    {
        $bytes = random_bytes(256 / 8);

        return rtrim(strtr(base64_encode($bytes), '+/', '-_'), '=').'.'.$file->getExtension();
    }
public function name(FileInterface $file)
    {
        $bytes = random_bytes(256 / 8);

        return rtrim(strtr(base64_encode($bytes), '+/', '-_'), '=').'.'.$file->getExtension();
    }
public function name ( FileInterface $ file ) { $ bytes = random_bytes ( 256 / 8 ) ; return rtrim ( strtr ( base64_encode ( $ bytes ) , '+/' , '-_' ) , '=' ) . '.' . $ file -> getExtension ( ) ; }
Name a given file and return the name.

@param FileInterface $file

@return string
Name a given file and return the name .