| 431 | } |
| 432 | |
| 433 | pub 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 | |
| 443 | impl<T: TestRandom> TestRandomSeed for T {} |
| 444 |
nothing calls this directly
no outgoing calls
no test coverage detected