From da38829573e60b4597895dcac7a344bfbeaa2084 Mon Sep 17 00:00:00 2001 From: Wu Yu Wei Date: Thu, 10 Apr 2025 21:05:48 +0900 Subject: [PATCH 1/2] Bump version to 0.20.0 Signed-off-by: Wu Yu Wei --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6e357f2d..59b06d7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ipc-channel" -version = "0.19.0" +version = "0.20.0" description = "A multiprocess drop-in replacement for Rust channels" authors = ["The Servo Project Developers"] license = "MIT OR Apache-2.0" From 959e78a2876a987da96e19776957840c8c3f52a1 Mon Sep 17 00:00:00 2001 From: Wu Yu Wei Date: Sun, 13 Apr 2025 16:47:05 +0900 Subject: [PATCH 2/2] Revert rand back to 0.8 Signed-off-by: Wu Yu Wei --- Cargo.toml | 2 +- src/platform/macos/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 59b06d7a..6105918a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ mio = { version = "1.0", default-features = false, features = ["os-ext"] } tempfile = "3.4" [target.'cfg(target_os = "macos")'.dependencies] -rand = "0.9" +rand = "0.8" [dev-dependencies] crossbeam-utils = "0.8" diff --git a/src/platform/macos/mod.rs b/src/platform/macos/mod.rs index 81c38fdc..6386d8c3 100644 --- a/src/platform/macos/mod.rs +++ b/src/platform/macos/mod.rs @@ -267,7 +267,7 @@ impl OsIpcReceiver { let mut os_result; let mut name; loop { - name = format!("{}{}", BOOTSTRAP_PREFIX, rand::rng().random::()); + name = format!("{}{}", BOOTSTRAP_PREFIX, rand::thread_rng().gen::()); let c_name = CString::new(name.clone()).unwrap(); os_result = bootstrap_register2(bootstrap_port, c_name.as_ptr(), right, 0); if os_result == BOOTSTRAP_NAME_IN_USE {