mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Clean up md5/sha1 usages, upgrade algos where possible (#12088)
* Clean up md5/sha1 usages, upgrade algos where possible * Fully qualify PHP_VERSION_ID constant usages * Fix 7.2 build
This commit is contained in:
parent
556ca06906
commit
8f3fed674b
33 changed files with 64 additions and 58 deletions
|
@ -66,7 +66,7 @@ class GitDownloaderTest extends TestCase
|
|||
$config = new Config();
|
||||
}
|
||||
if (!$config->has('home')) {
|
||||
$tmpDir = realpath(sys_get_temp_dir()).DIRECTORY_SEPARATOR.'cmptest-'.md5(uniqid('', true));
|
||||
$tmpDir = realpath(sys_get_temp_dir()).DIRECTORY_SEPARATOR.'cmptest-'.bin2hex(random_bytes(5));
|
||||
$config->merge(['config' => ['home' => $tmpDir]]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue