summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/tests/rand/getrandom.rs
blob: ac316e447082577e20919c8cd554cb0b12626a78 (plain)
1
2
3
4
5
6
7
use rustix::rand::{getrandom, GetRandomFlags};

#[test]
fn test_getrandom() {
    let mut buf = [0_u8; 256];
    let _ = getrandom(&mut buf, GetRandomFlags::empty());
}