MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / randomize

Method randomize

benches/core.rs:40–44  ·  view source on GitHub ↗
(&mut self, rng: &mut XorRng)

Source from the content-addressed store, hash-verified

38
39impl ShallowParams {
40 fn randomize(&mut self, rng: &mut XorRng) {
41 self.a = rng.rand_unit();
42 self.b = rng.rand_unit();
43 self.c = (rng.generate() & 1) > 0;
44 }
45}
46
47#[derive(Diff, Patch, Default, Clone)]

Callers 1

criterion_benchmarkFunction · 0.80

Calls 2

rand_unitMethod · 0.80
generateMethod · 0.80

Tested by

no test coverage detected