Skip to content

Commit

Permalink
Replace uniqid with uuid4() (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiunicolaa authored and ankitpokhrel committed Oct 1, 2019
1 parent 680c382 commit b2e4b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tus/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace TusPhp\Tus;

use Ramsey\Uuid\Uuid;
use TusPhp\File;
use Carbon\Carbon;
use TusPhp\Config;
Expand Down Expand Up @@ -524,7 +525,7 @@ protected function partial(bool $state = true)
list($key, /* $partialKey */) = explode(self::PARTIAL_UPLOAD_NAME_SEPARATOR, $key);
}

$this->key = $key . uniqid(self::PARTIAL_UPLOAD_NAME_SEPARATOR);
$this->key = $key . self::PARTIAL_UPLOAD_NAME_SEPARATOR . Uuid::uuid4()->toString();
}

/**
Expand Down

0 comments on commit b2e4b83

Please sign in to comment.