diff options
| author | bors <bors@rust-lang.org> | 2018-09-05 03:04:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-09-05 03:04:20 +0000 |
| commit | 0be2c303692cab31390e52701007cfa87867bf74 (patch) | |
| tree | a7a48f343f3573463febf77234d4d674f524d522 /src/libstd/tests | |
| parent | f68b7cc59896427d378c9e3bae6f5fd7a1f1fad9 (diff) | |
| parent | 9ec5ef541ad17986bfe6ae067a84ea8f7b7ae133 (diff) | |
| download | rust-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/tests')
| -rw-r--r-- | src/libstd/tests/env.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/tests/env.rs b/src/libstd/tests/env.rs index 8acb8a46d7b..7302a794480 100644 --- a/src/libstd/tests/env.rs +++ b/src/libstd/tests/env.rs @@ -13,11 +13,12 @@ extern crate rand; use std::env::*; use std::ffi::{OsString, OsStr}; -use rand::Rng; +use rand::{thread_rng, Rng}; +use rand::distributions::Alphanumeric; fn make_rand_name() -> OsString { - let mut rng = rand::thread_rng(); - let n = format!("TEST{}", rng.gen_ascii_chars().take(10) + let mut rng = thread_rng(); + let n = format!("TEST{}", rng.sample_iter(&Alphanumeric).take(10) .collect::<String>()); let n = OsString::from(n); assert!(var_os(&n).is_none()); |
