()
| 123 | use super::*; |
| 124 | #[test] |
| 125 | fn deterministic() { |
| 126 | let mut det = Deterministic::new(vec![1, 2, 3, 4]); |
| 127 | let mut buf = vec![0; 1024]; |
| 128 | det.try_fill_bytes(&mut buf).expect("get randomness"); |
| 129 | for (ix, b) in buf.iter().enumerate() { |
| 130 | assert_eq!(*b, (ix % 4) as u8 + 1) |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | pub fn thread_rng() -> Box<dyn Rng + Send> { |
nothing calls this directly
no test coverage detected