Skip to content

Commit

Permalink
Bump rand from 0.7.3 to 0.8.0 (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] authored Dec 26, 2020
1 parent 12b96ea commit 4d32f6d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 14 deletions.
75 changes: 63 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/shadowsocks-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ lru_time_cache = "0.11"
bytes = "0.6"
byte_string = "1.0"
byteorder = "1.3"
rand = { version = "0.7", optional = true }
rand = { version = "0.8", optional = true }

futures = "0.3"
tokio = { version = "0.3.1", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/shadowsocks-service/src/local/dns/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ impl DnsClient {
// Then this future will be disabled and have no effect
//
// Randomly choose from 500ms ~ 1.5s for preventing obvious request pattern
let sleep_time = thread_rng().gen_range(500, 1500);
let sleep_time = thread_rng().gen_range(500..=1500);
time::sleep(Duration::from_millis(sleep_time)).await;

let server = self.balancer.best_tcp_server();
Expand Down

0 comments on commit 4d32f6d

Please sign in to comment.