Failed Conditions
Push — v7 ( a687dc...e264c8 )
by Florent
02:28
created

RandomGeneratorFactory::getRandomGenerator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Jose\Component\Core\Util\Ecc\Random;
4
5
use Jose\Component\Core\Util\Ecc\Math\MathAdapterFactory;
6
7
final class RandomGeneratorFactory
8
{
9
    /**
10
     * @return RandomNumberGenerator
11
     */
12
    public static function getRandomGenerator()
13
    {
14
        return new RandomNumberGenerator(
15
            MathAdapterFactory::getAdapter()
16
        );
17
    }
18
}
19