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

Function get_global_rng

src/program/rand.rs:15–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13});
14
15pub fn get_global_rng() -> std::sync::MutexGuard<'static, StdRng> {
16 GLOBAL_RNG.lock().unwrap()
17}
18
19pub fn random_select<T>(seq: &[T]) -> &T {
20 let len = seq.len();

Callers 6

prompt_insertionFunction · 0.85
prompt_crossoverFunction · 0.85
random_selectFunction · 0.85
random_sampleFunction · 0.85
weighted_chooseFunction · 0.85
prob_coinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected