mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-18 05:58:20 +01:00
Use random_bytes()
in FileSystem::randomName()
This commit is contained in:
parent
ac8b8bce6e
commit
b815346743
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user