Skip to content

Commit

Permalink
use str_random
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 2, 2016
1 parent be8d323 commit 558fc34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Http/FileHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Illuminate\Http;

use Ramsey\Uuid\Uuid;

trait FileHelpers
{
/**
Expand Down Expand Up @@ -48,6 +46,6 @@ public function hashName($path = null)
$path = rtrim($path, '/').'/';
}

return str_replace('-', '', $path.Uuid::uuid4()->toString()).'.'.$this->guessExtension();
return str_replace('-', '', $path.str_random(32)).'.'.$this->guessExtension();
}
}

0 comments on commit 558fc34

Please sign in to comment.