MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / prompt_shuffle

Function prompt_shuffle

src/mutation.rs:26–30  ·  view source on GitHub ↗
(prompt: &mut Prompt)

Source from the content-addressed store, hash-verified

24}
25
26pub fn prompt_shuffle(prompt: &mut Prompt) {
27 log::info!("Shuffle the prompt.");
28 let combination = rand_choose_combination(crate::program::rand::rand_comb_len());
29 prompt.set_combination(combination);
30}
31
32/// Insert an high energy API into combination
33fn prompt_insertion(prompt: Vec<String>, schedule: &Schedule) -> Vec<String> {

Callers 1

fuzz_loopMethod · 0.85

Calls 3

rand_choose_combinationFunction · 0.85
rand_comb_lenFunction · 0.85
set_combinationMethod · 0.80

Tested by

no test coverage detected