mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix(TaskProcessingA/Manager): Use time() along with rand int for file names
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
eb0b5f29fb
commit
2fed2fc433
1 changed files with 2 additions and 2 deletions
|
|
@ -845,13 +845,13 @@ class Manager implements IManager {
|
|||
}
|
||||
if ($type->value < 10) {
|
||||
/** @var SimpleFile $file */
|
||||
$file = $folder->newFile((string) rand(0, 10000000), $output[$key]);
|
||||
$file = $folder->newFile(time() . '-' . rand(1, 100000), $output[$key]);
|
||||
$newOutput[$key] = $file->getId(); // polymorphic call to SimpleFile
|
||||
} else {
|
||||
$newOutput = [];
|
||||
foreach ($output[$key] as $item) {
|
||||
/** @var SimpleFile $file */
|
||||
$file = $folder->newFile((string) rand(0, 10000000), $item);
|
||||
$file = $folder->newFile(time() . '-' . rand(1, 100000), $item);
|
||||
$newOutput[$key][] = $file->getId();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue