lib/contrast/utils/hash_digest.rb in contrast-agent-3.13.2 vs lib/contrast/utils/hash_digest.rb in contrast-agent-3.14.0

- old
+ new

@@ -1,9 +1,9 @@ # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true -cs__scoped_require 'digest' +require 'digest' module Contrast module Utils # We use this class to provide hashes for our Request and Finding objects # based upon our definitions of uniqueness. @@ -129,9 +129,10 @@ def update_on_content_length chr update(CHARS[Math.log10(chr.to_s.length).to_i] || CHARS[-1]) end def initialize + super @crc32 = 0 end def update str return unless str