namespace Drupal\Tests\Component\PhpStorage;
use Drupal\Component\Utility\Crypt;
+use Drupal\Component\Utility\Random;
/**
* Base test class for MTime protected storage.
protected function setUp() {
parent::setUp();
- $this->secret = $this->randomMachineName();
+ // Random generator.
+ $random = new Random();
+
+ $this->secret = $random->name(8, TRUE);
$this->settings = [
'directory' => $this->directory,