Lines Matching refs:getrandom
1 # getrandom chapter
5 [GitHub Actions]: https://github.com/rust-random/getrandom/actions?query=workflow:Tests+branch:mast…
6 [Build Status]: https://github.com/rust-random/getrandom/workflows/Tests/badge.svg?branch=master
7 [crates.io]: https://crates.io/crates/getrandom
8 [Crate]: https://img.shields.io/crates/v/getrandom
9 [docs.rs]: https://docs.rs/getrandom
10 [Documentation]: https://docs.rs/getrandom/badge.svg
11 [deps.rs]: https://deps.rs/repo/github/rust-random/getrandom
12 [Dependency Status]: https://deps.rs/repo/github/rust-random/getrandom/status.svg
13 [Downloads]: https://img.shields.io/crates/d/getrandom
14 [LICENSE-MIT]: https://raw.githubusercontent.com/rust-random/getrandom/master/LICENSE-MIT
15 [License]: https://img.shields.io/crates/l/getrandom
21 from Linux's `getrandom` function, but is cross platform, roughly supporting
35 getrandom = "0.2"
38 Then invoke the `getrandom` function:
41 fn get_random_buf() -> Result<[u8; 32], getrandom::Error> {
43 getrandom::getrandom(&mut buf)?;
50 [`getrandom` documentation](https://docs.rs/getrandom/latest) and
51 [`getrandom::Error` documentation](https://docs.rs/getrandom/latest/getrandom/struct.Error.html).
59 The `getrandom` library is distributed under either of