Skip to content

Commit 959e78a

Browse files
committed
Revert rand back to 0.8
Signed-off-by: Wu Yu Wei <[email protected]>
1 parent da38829 commit 959e78a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ mio = { version = "1.0", default-features = false, features = ["os-ext"] }
4545
tempfile = "3.4"
4646

4747
[target.'cfg(target_os = "macos")'.dependencies]
48-
rand = "0.9"
48+
rand = "0.8"
4949

5050
[dev-dependencies]
5151
crossbeam-utils = "0.8"

src/platform/macos/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl OsIpcReceiver {
267267
let mut os_result;
268268
let mut name;
269269
loop {
270-
name = format!("{}{}", BOOTSTRAP_PREFIX, rand::rng().random::<i64>());
270+
name = format!("{}{}", BOOTSTRAP_PREFIX, rand::thread_rng().gen::<i64>());
271271
let c_name = CString::new(name.clone()).unwrap();
272272
os_result = bootstrap_register2(bootstrap_port, c_name.as_ptr(), right, 0);
273273
if os_result == BOOTSTRAP_NAME_IN_USE {

0 commit comments

Comments
 (0)