require 'active_support/secure_random'

module ActiveMerchant #:nodoc:
  module Utils #:nodoc:
    def generate_unique_id
      SecureRandom.hex(16)
    end

    module_function :generate_unique_id

    def deprecated(message)
      warn(Kernel.caller[1] + message)
    end
  end
end

require 'securerandom'

module ActiveMerchant #:nodoc:
  module Utils #:nodoc:
    def generate_unique_id
      SecureRandom.hex(16)
    end

    module_function :generate_unique_id

    def deprecated(message)
      warn(Kernel.caller[1] + message)
    end
  end
end

Use ruby core securerandom as it's removed from latest activesupport
Use ruby core securerandom as it's removed from latest activesupport
