summaryrefslogtreecommitdiffstats
path: root/vendor/rustix-0.36.5/src/rand
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix-0.36.5/src/rand')
-rw-r--r--vendor/rustix-0.36.5/src/rand/getrandom.rs21
-rw-r--r--vendor/rustix-0.36.5/src/rand/mod.rs7
2 files changed, 0 insertions, 28 deletions
diff --git a/vendor/rustix-0.36.5/src/rand/getrandom.rs b/vendor/rustix-0.36.5/src/rand/getrandom.rs
deleted file mode 100644
index 83043800d..000000000
--- a/vendor/rustix-0.36.5/src/rand/getrandom.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-use crate::{backend, io};
-
-/// `GRND_*`
-pub use backend::rand::types::GetRandomFlags;
-
-/// `getrandom(buf, flags)`—Reads a sequence of random bytes.
-///
-/// This is a very low-level API which may be difficult to use correctly. Most
-/// users should prefer to use [`getrandom`] or [`rand`] APIs instead.
-///
-/// [`getrandom`]: https://crates.io/crates/getrandom
-/// [`rand`]: https://crates.io/crates/rand
-///
-/// # References
-/// - [Linux]
-///
-/// [Linux]: https://man7.org/linux/man-pages/man2/getrandom.2.html
-#[inline]
-pub fn getrandom(buf: &mut [u8], flags: GetRandomFlags) -> io::Result<usize> {
- backend::rand::syscalls::getrandom(buf, flags)
-}
diff --git a/vendor/rustix-0.36.5/src/rand/mod.rs b/vendor/rustix-0.36.5/src/rand/mod.rs
deleted file mode 100644
index b8a1320a8..000000000
--- a/vendor/rustix-0.36.5/src/rand/mod.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-//! Random-related operations.
-
-#[cfg(any(linux_raw, all(libc, target_os = "linux")))]
-mod getrandom;
-
-#[cfg(any(linux_raw, all(libc, target_os = "linux")))]
-pub use getrandom::{getrandom, GetRandomFlags};