Skip to content

Commit b28a42a

Browse files
update rand to 0.9
1 parent eebade8 commit b28a42a

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed

Cargo.lock

+36-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

socketio/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rust_engineio = { version = "0.6.0", path = "../engineio" }
1818
base64 = "0.22"
1919
bytes = "1"
2020
backoff = "0.4"
21-
rand = "0.8.5"
21+
rand = "0.9"
2222
adler32 = "1.2.0"
2323
serde_json = "1.0"
2424
thiserror = "2.0"

socketio/src/asynchronous/client/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl Client {
393393
E: Into<Event>,
394394
D: Into<Payload>,
395395
{
396-
let id = thread_rng().gen_range(0..999);
396+
let id = thread_rng().random_range(0..999);
397397
let socket_packet =
398398
Packet::new_from_payload(data.into(), event.into(), &self.nsp, Some(id))?;
399399

socketio/src/client/raw_client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl RawClient {
203203
E: Into<Event>,
204204
D: Into<Payload>,
205205
{
206-
let id = thread_rng().gen_range(0..999);
206+
let id = thread_rng().random_range(0..999);
207207
let socket_packet =
208208
Packet::new_from_payload(data.into(), event.into(), &self.nsp, Some(id))?;
209209

0 commit comments

Comments
 (0)