mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Use a high-strength generator by default, when using RandomLibAdapter
This commit is contained in:
@@ -33,7 +33,7 @@ class RandomLibAdapter implements RandomGeneratorInterface
|
||||
/**
|
||||
* Constructs a `RandomLibAdapter` using a `RandomLib\Generator`
|
||||
*
|
||||
* By default, if no `Generator` is passed in, this creates a medium-strength
|
||||
* By default, if no `Generator` is passed in, this creates a high-strength
|
||||
* generator to use when generating random binary data.
|
||||
*
|
||||
* @param Generator $generator An paragonie/random-lib `Generator`
|
||||
@@ -45,7 +45,7 @@ class RandomLibAdapter implements RandomGeneratorInterface
|
||||
if ($this->generator === null) {
|
||||
$factory = new Factory();
|
||||
|
||||
$this->generator = $factory->getMediumStrengthGenerator();
|
||||
$this->generator = $factory->getHighStrengthGenerator();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user