Use random_bytes() in FileSystem::randomName()

This commit is contained in:
Giuseppe Criscione 2020-11-27 13:29:46 +01:00
parent ac8b8bce6e
commit b815346743

View File

@ -650,7 +650,7 @@ class FileSystem
*/
public static function randomName(): string
{
return str_shuffle(dechex(random_int(0x100, 0xfff)) . uniqid());
return bin2hex(random_bytes(8));
}
/**