mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +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
|
@ -113,7 +113,7 @@ class MetapackageInstallerTest extends TestCase
|
|||
private function createPackageMock()
|
||||
{
|
||||
return $this->getMockBuilder('Composer\Package\Package')
|
||||
->setConstructorArgs([md5((string) mt_rand()), '1.0.0.0', '1.0.0'])
|
||||
->setConstructorArgs([bin2hex(random_bytes(5)), '1.0.0.0', '1.0.0'])
|
||||
->getMock();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue