()
| 10 | |
| 11 | #[test] |
| 12 | fn test_getrandom_uninit() { |
| 13 | let mut buf = unsafe { MaybeUninit::<[MaybeUninit<u8>; 256]>::uninit().assume_init() }; |
| 14 | let (init, uninit) = getrandom(&mut buf, GetRandomFlags::empty()).unwrap(); |
| 15 | let combined_len = init.len() + uninit.len(); |
| 16 | assert_eq!(buf.len(), combined_len); |
| 17 | } |
nothing calls this directly
no test coverage detected