diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/rustix/src/rand | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/src/rand')
-rw-r--r-- | vendor/rustix/src/rand/getrandom.rs | 2 | ||||
-rw-r--r-- | vendor/rustix/src/rand/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vendor/rustix/src/rand/getrandom.rs b/vendor/rustix/src/rand/getrandom.rs index 79d5319d5..c66e50d56 100644 --- a/vendor/rustix/src/rand/getrandom.rs +++ b/vendor/rustix/src/rand/getrandom.rs @@ -1,6 +1,6 @@ use crate::{backend, io}; -/// `GRND_*` constants for use with `getrandom`. +/// `GRND_*` constants for use with [`getrandom`]. pub use backend::rand::types::GetRandomFlags; /// `getrandom(buf, flags)`—Reads a sequence of random bytes. diff --git a/vendor/rustix/src/rand/mod.rs b/vendor/rustix/src/rand/mod.rs index 4a0936d6c..e767c590d 100644 --- a/vendor/rustix/src/rand/mod.rs +++ b/vendor/rustix/src/rand/mod.rs @@ -1,7 +1,7 @@ //! Random-related operations. -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(linux_kernel)] mod getrandom; -#[cfg(any(target_os = "android", target_os = "linux"))] +#[cfg(linux_kernel)] pub use getrandom::{getrandom, GetRandomFlags}; |