We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1444b3e commit 52107d3Copy full SHA for 52107d3
src/utils/sealed_file.rs
@@ -53,13 +53,13 @@ impl SealedFile {
53
/// Create a `[SealedFile]` with the given binary data.
54
#[cfg(not(any(target_os = "linux", target_os = "freebsd", target_os = "android")))]
55
pub fn with_data(name: &CStr, data: &[u8]) -> Result<Self, std::io::Error> {
56
- use rand::{distributions::Alphanumeric, Rng};
+ use rand::{distr::Alphanumeric, Rng};
57
use rustix::{
58
io::Errno,
59
shm::{self, Mode},
60
};
61
62
- let mut rng = rand::thread_rng();
+ let mut rng = rand::rng();
63
64
// `memfd_create` isn't available. Instead, try `shm_open` with a randomized name, and
65
// loop a couple times if it exists.
0 commit comments