Dcrypt\Random::fromMcrypt PHP Method

fromMcrypt() private static method

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