/external/rust/crates/rand/src/rngs/ |
D | thread.rs | 87 pub fn thread_rng() -> ThreadRng { in thread_rng() function 94 crate::prelude::thread_rng() in default() 138 let mut r = crate::thread_rng(); in test_thread_rng()
|
/external/rust/crates/rayon/src/slice/ |
D | test.rs | 6 use rand::{thread_rng, Rng}; 13 let mut rng = thread_rng(); 73 v.$f(|_, _| *[Less, Equal, Greater].choose(&mut thread_rng()).unwrap()); 105 let mut rng = thread_rng(); in test_par_sort_stability()
|
D | quicksort.rs | 765 use rand::{thread_rng, Rng}; 769 let rng = thread_rng(); in test_heapsort() 793 heapsort(&mut v, &|_, _| thread_rng().gen()); in test_heapsort()
|
/external/rust/crates/nix/test/sys/ |
D | test_uio.rs | 3 use rand::{thread_rng, Rng}; 17 let s: String = thread_rng().sample_iter(&Alphanumeric).take(128).collect(); in test_writev() 26 … let slice_len = if left <= 64 { left } else { thread_rng().gen_range(64, cmp::min(256, left)) }; in test_writev() 60 let s:String = thread_rng().sample_iter(&Alphanumeric).take(128).collect(); in test_readv() 66 … let vec_len = if left <= 64 { left } else { thread_rng().gen_range(64, cmp::min(256, left)) }; in test_readv()
|
D | test_sockopt.rs | 1 use rand::{thread_rng, Rng}; 23 let bufsize: usize = thread_rng().gen_range(4096, 131_072); in test_so_buf()
|
/external/rust/crates/byteorder/benches/ |
D | bench.rs | 265 let mut numbers: Vec<$numty> = rand::thread_rng() 280 let mut numbers: Vec<$numty> = rand::thread_rng() 295 let numbers: Vec<$numty> = rand::thread_rng() 309 let numbers: Vec<$numty> = rand::thread_rng()
|
/external/rust/crates/rand/src/ |
D | lib.rs | 106 pub use crate::rngs::thread::thread_rng; 186 thread_rng().gen() in random()
|
D | prelude.rs | 33 pub use crate::{random, thread_rng};
|
/external/rust/crates/flate2/src/zlib/ |
D | mod.rs | 10 use rand::{thread_rng, Rng}; 21 let to_write = &v[..thread_rng().gen_range(0, v.len())]; in roundtrip() 50 let to_write = &v[..thread_rng().gen_range(0, v.len())]; in total_in()
|
/external/rust/crates/flate2/src/deflate/ |
D | mod.rs | 9 use rand::{thread_rng, Rng}; 20 let to_write = &v[..thread_rng().gen_range(0, v.len())]; in roundtrip() 49 let to_write = &v[..thread_rng().gen_range(0, v.len())]; in total_in()
|
/external/rust/crates/rayon/tests/ |
D | sort-panic-safe.rs | 2 use rand::{thread_rng, Rng}; 132 let mut rng = thread_rng(); in sort_panic_safe()
|
/external/rust/crates/flate2/tests/ |
D | tokio.rs | 19 use rand::{thread_rng, Rng}; 83 .map(|()| thread_rng().gen::<u8>()) in echo_random()
|
/external/rust/crates/rand/ |
D | README.md | 16 … and fast, convenient generation via [`thread_rng`](https://docs.rs/rand/*/rand/fn.thread_rng.html) 118 - `std_rng` enables inclusion of `StdRng`, `thread_rng` and `random` 139 unavailable (unless `alloc` is enabled), and `thread_rng` and `random` are
|
D | CHANGELOG.md | 342 - Switch `StdRng` and `thread_rng` to HC-128. (#277) 344 - Change `thread_rng` reseeding threshold to 32 MiB. (#277) 415 - `thread_rng` uses `JitterRng` if seeding from system time fails 437 - `thread_rng` is seeded from the system time if `OsRng` fails 438 - `weak_rng` now uses `thread_rng` internally 611 - Rename `TaskRng` to `ThreadRng` and `task_rng` to `thread_rng` (since a
|
/external/rust/crates/crc32fast/benches/ |
D | bench.rs | 12 rand::thread_rng().fill(&mut bytes[..]); in bench()
|
/external/rust/crates/vsock/tests/ |
D | vsock.rs | 33 let mut rng = rand::thread_rng(); in test_vsock()
|
/external/rust/crates/zip/benches/ |
D | read_entry.rs | 17 rand::thread_rng().fill_bytes(&mut bytes); in generate_random_archive()
|
/external/rust/crates/crossbeam-epoch/examples/ |
D | sanitize.rs | 11 let mut rng = rand::thread_rng(); in worker()
|
/external/rust/crates/crossbeam-deque/tests/ |
D | fifo.rs | 177 let mut rng = rand::thread_rng(); in stress() 237 let mut rng = rand::thread_rng(); in no_starvation()
|
D | injector.rs | 188 let mut rng = rand::thread_rng(); in stress() 248 let mut rng = rand::thread_rng(); in no_starvation()
|
D | lifo.rs | 177 let mut rng = rand::thread_rng(); in stress() 237 let mut rng = rand::thread_rng(); in no_starvation()
|
/external/rust/crates/flate2/src/gz/ |
D | mod.rs | 261 use rand::{thread_rng, Rng}; 290 let to_write = &v[..thread_rng().gen_range(0, v.len())]; in roundtrip_big()
|
/external/rust/crates/flate2/src/ |
D | lib.rs | 233 iter::repeat(()).map(|_| rand::thread_rng().gen()) in random_bytes()
|
/external/rust/crates/crossbeam-channel/tests/ |
D | zero.rs | 13 use rand::{thread_rng, Rng}; 399 let mut rng = thread_rng(); in drops()
|
D | list.rs | 13 use rand::{thread_rng, Rng}; 387 let mut rng = thread_rng(); in drops()
|