Module: NdrError::Fuzzing

Included in:
Log
Defined in:
lib/ndr_error/fuzzing.rb

Overview

Mixin to help with fuzzing of exception messages/traces.

Instance Method Summary collapse

Instance Method Details

#fuzz(description, backtrace, parent_print = nil) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ndr_error/fuzzing.rb', line 4

def fuzz(description, backtrace, parent_print = nil)
  Digest::MD5.hexdigest([
    fuzz_description(description),
    fuzz_backtrace(backtrace),
    parent_print
  ].compact.join)
end