Skip to content

Commit a05a494

Browse files
committed
Auto merge of #3341 - jtgeibel:update/rand, r=Turbo87
Bump to latest rand r? `@Turbo87`
2 parents 575b2fb + fef0e4e commit a05a494

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ lettre = { version = "0.10.0-alpha.1", default-features = false, features = ["fi
6969
license-exprs = "1.6"
7070
oauth2 = { version = "4.0.0-alpha.3", default-features = false, features = ["reqwest"] }
7171
parking_lot = "0.11"
72-
rand = "0.7"
72+
rand = "0.8"
7373
reqwest = { version = "0.11", features = ["blocking", "gzip", "json"] }
7474
scheduled-thread-pool = "0.2.0"
7575
semver = { version = "0.10", features = ["diesel", "serde"] }

src/admin/populate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ fn update(opts: Opts, conn: &PgConnection) -> QueryResult<()> {
2424

2525
for id in opts.version_ids {
2626
let mut rng = thread_rng();
27-
let mut dls = rng.gen_range(5_000i32, 10_000);
27+
let mut dls = rng.gen_range(5_000i32..10_000);
2828

2929
for day in 0..90 {
30-
dls += rng.gen_range(-100, 100);
30+
dls += rng.gen_range(-100..100);
3131

3232
diesel::insert_into(version_downloads::table)
3333
.values((

0 commit comments

Comments
 (0)