MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / TestRandomSeed

Interface TestRandomSeed

crates/common/src/utils.rs:433–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433pub trait TestRandomSeed: TestRandom {
434 fn test_random() -> Self
435 where
436 Self: Sized,
437 {
438 let mut rng = XorShiftRng::from_os_rng();
439 Self::random_for_test(&mut rng)
440 }
441}
442
443impl<T: TestRandom> TestRandomSeed for T {}
444

Callers

nothing calls this directly

Implementers 1

utils.rscrates/common/src/utils.rs

Calls

no outgoing calls

Tested by

no test coverage detected