Skip to content

Commit

Permalink
more consistent randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 17, 2013
1 parent 3e39ce9 commit 6dbb2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Asset/File.pm
Expand Up @@ -26,7 +26,7 @@ has handle => sub {
my $name = $path // $base;
until ($handle->open($name, O_CREAT | O_EXCL | O_RDWR)) {
croak qq{Can't open file "$name": $!} if defined $path || $! != $!{EEXIST};
$name = "$base." . md5_sum(time . $$ . rand 9 x 7);
$name = "$base." . md5_sum(time . $$ . rand 999);
}
$self->path($name);

Expand Down

0 comments on commit 6dbb2ed

Please sign in to comment.