src/Robin/Ntlm/Crypt/Random/McryptRandomByteGenerator.php
public function generate($size)
    {
        trigger_error(
            'This implementation is deprecated, as the mcrypt library is abandoned',
            E_USER_DEPRECATED
        );

        $generated = mcrypt_create_iv($size, $this->source);

        if (false === $generated || strlen($generated) !== $size) {
            throw CryptographicFailureException::forReasonCode(
                CryptographicFailureException::CODE_FOR_RANDOM_DATA_GENERATION_FAILURE
            );
        }

        return $generated;
    }
public function generate($size)
    {
        trigger_error(
            'This implementation is deprecated, as the mcrypt library is abandoned',
            E_USER_DEPRECATED
        );

        $generated = mcrypt_create_iv($size, $this->source);

        if (false === $generated || strlen($generated) !== $size) {
            throw CryptographicFailureException::forReasonCode(
                CryptographicFailureException::CODE_FOR_RANDOM_DATA_GENERATION_FAILURE
            );
        }

        return $generated;
    }
{@inheritDoc}

@deprecated This implementation is deprecated, as the mcrypt
library is abandoned. Use {@link NativeRandomByteGenerator} instead.