public function formatedId($alphabet, $size, GeneratorInterface $generator = null)
    {
        $generator = $generator?:$this->generator;
        $alphabet = $alphabet?:CoreInterface::SAFE_SYMBOLS;

        return $this->core->random($generator, $size, $alphabet);
    }
public function formatedId($alphabet, $size, GeneratorInterface $generator = null)
    {
        $generator = $generator?:$this->generator;
        $alphabet = $alphabet?:CoreInterface::SAFE_SYMBOLS;

        return $this->core->random($generator, $size, $alphabet);
    }
public function formatedId ( $ alphabet , $ size , GeneratorInterface $ generator = null ) { $ generator = $ generator ? : $ this -> generator ; $ alphabet = $ alphabet ? : CoreInterface :: SAFE_SYMBOLS ; return $ this -> core -> random ( $ generator , $ size , $ alphabet ) ; }
The original API of nanoid. Use it be careful, Please make sure
you have been implements your custom GeneratorInterface as correctly.
Otherwise use the build-in default random bytes generator

@see https://github.com/ai/nanoid/blob/master/format.js
@see https://github.com/ai/nanoid/blob/master/generate.js
@param GeneratorInterface $generator
@param integer $size
@param string $alphabet default CoreInterface::SAFE_SYMBOLS
@return string
The original API of nanoid . Use it be careful Please make sure you have been implements your custom GeneratorInterface as correctly . Otherwise use the build - in default random bytes generator