X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/0a42ea9c0373f018049a1fcf6a9a8eb896739614..1f0f0eef92f34b5dbe97c7176c58f9aef256baff:/typo3/sysext/saltedpasswords/Tests/Unit/Salt/Md5SaltTest.php diff --git a/typo3/sysext/saltedpasswords/Tests/Unit/Salt/Md5SaltTest.php b/typo3/sysext/saltedpasswords/Tests/Unit/Salt/Md5SaltTest.php index 200c7b9c6cac..8f9ca3d7ad46 100644 --- a/typo3/sysext/saltedpasswords/Tests/Unit/Salt/Md5SaltTest.php +++ b/typo3/sysext/saltedpasswords/Tests/Unit/Salt/Md5SaltTest.php @@ -15,7 +15,6 @@ namespace TYPO3\CMS\Saltedpasswords\Tests\Unit\Salt; */ use TYPO3\CMS\Core\Crypto\Random; -use TYPO3\CMS\Core\Utility\GeneralUtility; /** * Testcases for Md5Salt @@ -111,7 +110,7 @@ class Md5SaltTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $password = 'password'; // custom salt without setting - $randomBytes = GeneralUtility::makeInstance(Random::class)->generateRandomBytes($this->objectInstance->getSaltLength()); + $randomBytes = (new Random())->generateRandomBytes($this->objectInstance->getSaltLength()); $salt = $this->objectInstance->base64Encode($randomBytes, $this->objectInstance->getSaltLength()); $this->assertTrue($this->objectInstance->isValidSalt($salt), $this->getWarningWhenMethodUnavailable()); $saltedHashPassword = $this->objectInstance->getHashedPassword($password, $salt);