Skip to content

Commit d3247fb

Browse files
committed
chore: back down getrandom version again
Didn't read my own notes in my cargo file. Oops.
1 parent d4dc7ff commit d3247fb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

buttplug/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ tokio-tungstenite = { version = "0.26.2", features = ["rustls-tls-webpki-roots",
9595
rustls = { version = "0.23.26", optional = true, default-features = false, features = ["ring"]}
9696
aes = { version = "0.8.4" }
9797
ecb = { version = "0.1.2", features = ["std"] }
98-
rand = { version = "0.9.1" }
9998
sha2 = { version = "0.10.8", features = ["std"] }
10099
# Used by several packages, but we need to bring in the JS feature for wasm. Pinned at 0.2 until dependencies update
101-
getrandom = { version = "0.3.2", features = ["wasm_js"] }
100+
rand = { version = "0.8" }
101+
getrandom = { version = "0.2.11", features = ["js"] }
102102

103103
[dev-dependencies]
104104
serde_yaml = "0.9.34"

buttplug/src/server/device/protocol/vibcrafter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ use ecb::cipher::block_padding::Pkcs7;
2727
use ecb::cipher::{BlockDecryptMut, BlockEncryptMut, KeyInit};
2828
use std::sync::Arc;
2929

30-
use rand::distr::Alphanumeric;
31-
use rand::{rng, Rng};
30+
use rand::distributions::Alphanumeric;
31+
use rand::{thread_rng, Rng};
3232
use regex::Regex;
3333
use sha2::{Digest, Sha256};
3434

@@ -70,7 +70,7 @@ impl ProtocolInitializer for VibCrafterInitializer {
7070
.subscribe(&HardwareSubscribeCmd::new(Endpoint::Rx))
7171
.await?;
7272

73-
let auth_str = rng()
73+
let auth_str = thread_rng()
7474
.sample_iter(&Alphanumeric)
7575
.take(6)
7676
.map(char::from)

0 commit comments

Comments
 (0)