'Writes the exception data to a random file in /tmp/ right after the
exception is found.
Very similar to the create_crash_file but for internal/debugging usage
:return: None'

def write_crash_file(self, edata):

    filename = ('w3af-crash-%s.txt' % rand_alnum(5))
    filename = os.path.join(tempfile.gettempdir(), filename)
    crash_dump = file(filename, 'w')
    crash_dump.write(edata.get_details())
    crash_dump.close()
    return filename
