about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-09-05 03:04:20 +0000
committerbors <bors@rust-lang.org>2018-09-05 03:04:20 +0000
commit0be2c303692cab31390e52701007cfa87867bf74 (patch)
treea7a48f343f3573463febf77234d4d674f524d522 /src/libstd/sync
parentf68b7cc59896427d378c9e3bae6f5fd7a1f1fad9 (diff)
parent9ec5ef541ad17986bfe6ae067a84ea8f7b7ae133 (diff)
downloadrust-0be2c303692cab31390e52701007cfa87867bf74.tar.gz
rust-0be2c303692cab31390e52701007cfa87867bf74.zip
Auto merge of #53075 - Mark-Simulacrum:update-cargolock, r=alexcrichton
Update Cargo.lock

This also includes major version bumps for the rand crate used by core, std, and alloc tests, among other crates (regex, etc.) used elsewhere. Since these are all internal there should be no user-visible changes.

r? @alexcrichton
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/rwlock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs
index e3db60cff84..ed3a3865a6c 100644
--- a/src/libstd/sync/rwlock.rs
+++ b/src/libstd/sync/rwlock.rs
@@ -597,7 +597,7 @@ mod tests {
             thread::spawn(move || {
                 let mut rng = rand::thread_rng();
                 for _ in 0..M {
-                    if rng.gen_weighted_bool(N) {
+                    if rng.gen_bool(1.0 / (N as f64)) {
                         drop(r.write().unwrap());
                     } else {
                         drop(r.read().unwrap());