kitty.model.high_level.random_sequence module

class kitty.model.high_level.random_sequence.RandomSequenceModel(name='RandomSequenceModel', seed=None, callback_generator=None, num_mutations=1000, max_sequence=10)[source]

Bases: kitty.model.high_level.staged_sequence.StagedSequenceModel

This class provides random sequences of templates based on the selection strategy. It is like StagedSequenceModel with a signle stage.

__init__(name='RandomSequenceModel', seed=None, callback_generator=None, num_mutations=1000, max_sequence=10)[source]
Parameters:
  • name – name of the model object (default: ‘RandomSequenceModel’)
  • seed (int) – RNG seed (default: None)
  • callback_generator (func(from_template, to_template) -> func(fuzzer, edge, response) -> None) – a function that returns callback functions (default: None)
  • num_mutations – number of mutations to perform (defualt: 1000)
  • max_sequence – maximum sequence length (default: 10)
add_template(template)[source]

Add template that might be used in generated sequences

Parameters:template – template to add to the model