Dcrypt\Random::fromMcrypt PHP 메소드

fromMcrypt() 개인적인 정적인 메소드

Get random bytes from Mcrypt
private static fromMcrypt ( integer $bytes ) : string
$bytes integer Number of bytes to get
리턴 string
    private static function fromMcrypt($bytes)
    {
        $ret = \mcrypt_create_iv($bytes, MCRYPT_DEV_URANDOM);
        if ($ret === false) {
            self::toss();
            // @codeCoverageIgnore
        }
        return $ret;
    }