private function getDefaultGenerator()
    {
        foreach (self::$defaultGenerators as $generator) {
            /** @var Generator\Generator $generator */
            $generator = new $generator();

            if ($generator->isSupported()) {
                return $generator;
            }
        }

        throw new GeneratorException('Default secure random byte generators are not supported by the system');
    }
private function getDefaultGenerator()
    {
        foreach (self::$defaultGenerators as $generator) {
            /** @var Generator\Generator $generator */
            $generator = new $generator();

            if ($generator->isSupported()) {
                return $generator;
            }
        }

        throw new GeneratorException('Default secure random byte generators are not supported by the system');
    }
private function getDefaultGenerator ( ) { foreach ( self :: $ defaultGenerators as $ generator ) { /** @var Generator\Generator $generator */ $ generator = new $ generator ( ) ; if ( $ generator -> isSupported ( ) ) { return $ generator ; } } throw new GeneratorException ( 'Default secure random byte generators are not supported by the system' ) ; }
Returns the first supported default secure random byte generator.
@return Generator\Generator Supported secure random byte generator
@throws GeneratorException If none of the default generators are supported
Returns the first supported default secure random byte generator .