/external/rust/crates/rand/src/rngs/adapter/ |
D | reseeding.rs | 16 use rand_core::{CryptoRng, Error, RngCore, SeedableRng}; 82 Rsdr: RngCore; 87 Rsdr: RngCore, 107 impl<R, Rsdr: RngCore> RngCore for ReseedingRng<R, Rsdr> 134 Rsdr: RngCore + Clone, 146 Rsdr: RngCore + CryptoRng, 162 Rsdr: RngCore, 184 Rsdr: RngCore, 261 Rsdr: RngCore + Clone, 277 Rsdr: RngCore + CryptoRng,
|
D | read.rs | 15 use rand_core::{impls, Error, RngCore}; 58 impl<R: Read> RngCore for ReadRng<R> { 109 use crate::RngCore;
|
/external/rust/crates/rand_core/src/ |
D | lib.rs | 137 pub trait RngCore { trait 356 fn from_rng<R: RngCore>(mut rng: R) -> Result<Self, Error> { in from_rng() 390 impl<'a, R: RngCore + ?Sized> RngCore for &'a mut R { impl 416 impl<R: RngCore + ?Sized> RngCore for Box<R> { 439 impl std::io::Read for dyn RngCore { implementation
|
D | impls.rs | 20 use crate::RngCore; 24 pub fn next_u64_via_u32<R: RngCore + ?Sized>(rng: &mut R) -> u64 { in next_u64_via_u32() 37 pub fn fill_bytes_via_next<R: RngCore + ?Sized>(rng: &mut R, dest: &mut [u8]) { in fill_bytes_via_next() 136 pub fn next_u32_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u32 { in next_u32_via_fill() 143 pub fn next_u64_via_fill<R: RngCore + ?Sized>(rng: &mut R) -> u64 { in next_u64_via_fill()
|
D | os.rs | 11 use crate::{impls, CryptoRng, Error, RngCore}; 52 impl RngCore for OsRng {
|
D | block.rs | 57 use crate::{CryptoRng, Error, RngCore, SeedableRng}; 175 impl<R: BlockRngCore<Item = u32>> RngCore for BlockRng<R> 251 fn from_rng<S: RngCore>(rng: S) -> Result<Self, Error> { in from_rng() 343 impl<R: BlockRngCore<Item = u64>> RngCore for BlockRng64<R> 426 fn from_rng<S: RngCore>(rng: S) -> Result<Self, Error> { in from_rng()
|
/external/rust/crates/rand_core/ |
D | CHANGELOG.md | 14 - Avoid panic when using `RngCore::seed_from_u64` with a seed which is not a 67 - Implement `std::io::Read` for RngCore. (#434) 72 - `RngCore` and `SeedableRng` are now part of `rand_core`. (#288) 78 - Add `RngCore::try_fill_bytes`. (#225) 81 - Remove default implementations for `RngCore::next_u64` and `RngCore::fill_bytes`. (#288)
|
D | README.md | 13 This crate is intended for use when implementing the core trait, `RngCore`; it 18 tools to convert the integer samples generated by `RngCore` to many different 51 compatible across crate versions. (This is especially important for `RngCore` 62 comprising `RngCore` support for `Box<R>` types where `R: RngCore`, 63 `std::io::Read` support for types supporting `RngCore`, and
|
/external/rust/crates/rand/src/rngs/ |
D | std.rs | 11 use crate::{CryptoRng, Error, RngCore, SeedableRng}; 40 impl RngCore for StdRng { 71 fn from_rng<R: RngCore>(rng: R) -> Result<Self, Error> { in from_rng() 82 use crate::{RngCore, SeedableRng};
|
D | small.rs | 11 use rand_core::{Error, RngCore, SeedableRng}; 83 impl RngCore for SmallRng { 114 fn from_rng<R: RngCore>(rng: R) -> Result<Self, Error> { in from_rng()
|
D | mock.rs | 11 use rand_core::{impls, Error, RngCore}; 48 impl RngCore for StepRng {
|
D | thread.rs | 18 use crate::{CryptoRng, Error, RngCore, SeedableRng}; 98 impl RngCore for ThreadRng {
|
D | xoshiro256plusplus.rs | 12 use rand_core::{SeedableRng, RngCore, Error}; 61 impl RngCore for Xoshiro256PlusPlus {
|
D | xoshiro128plusplus.rs | 12 use rand_core::{SeedableRng, RngCore, Error}; 61 impl RngCore for Xoshiro128PlusPlus {
|
/external/rust/crates/rand_xorshift/src/ |
D | lib.rs | 22 use rand_core::{RngCore, SeedableRng, Error, impls, le}; 50 impl RngCore for XorShiftRng { 101 fn from_rng<R: RngCore>(mut rng: R) -> Result<Self, Error> { in from_rng()
|
/external/rust/crates/rand/src/ |
D | rng.rs | 12 use rand_core::{Error, RngCore}; 55 pub trait Rng: RngCore { 303 impl<R: RngCore + ?Sized> Rng for R {} 548 let mut r = &mut rng as &mut dyn RngCore; in test_rng_trait_object() 560 let mut r = Box::new(rng) as Box<dyn RngCore>; in test_rng_boxed_trait()
|
D | lib.rs | 95 pub use rand_core::{CryptoRng, Error, RngCore, SeedableRng}; 194 pub fn rng(seed: u64) -> impl RngCore { in rng() argument
|
D | prelude.rs | 34 #[doc(no_inline)] pub use crate::{CryptoRng, Rng, RngCore, SeedableRng};
|
/external/rust/crates/vsock/tests/ |
D | vsock.rs | 17 use rand::RngCore;
|
/external/rust/crates/rand_chacha/src/ |
D | chacha.rs | 17 use rand_core::{CryptoRng, Error, RngCore, SeedableRng}; 164 impl RngCore for $ChaChaXRng { impl 275 use rand_core::{RngCore, SeedableRng};
|
/external/rust/crates/rand/src/distributions/ |
D | other.rs | 208 use crate::RngCore; 213 let rng: &mut dyn RngCore = &mut crate::test::rng(820); in test_misc()
|
D | uniform.rs | 113 use crate::{Rng, RngCore}; 347 fn sample_single<R: RngCore + ?Sized>(self, rng: &mut R) -> T; in sample_single() 355 fn sample_single<R: RngCore + ?Sized>(self, rng: &mut R) -> T { in sample_single() 367 fn sample_single<R: RngCore + ?Sized>(self, rng: &mut R) -> T { in sample_single()
|
/external/rust/crates/rand_xorshift/tests/ |
D | mod.rs | 1 use rand_core::{RngCore, SeedableRng};
|
/external/crosvm/fuzz/ |
D | virtqueue_fuzzer.rs | 12 use rand::{Rng, RngCore};
|
/external/rust/crates/rand/ |
D | CHANGELOG.md | 312 - Split `Rng` in `RngCore` and `Rng` extension trait. 313 `next_u32`, `next_u64` and `fill_bytes` are now part of `RngCore`. (#265) 324 - `RngCore` and `SeedableRng` are now part of `rand_core`. (#288) 331 - Remove default implementations for `RngCore::next_u64` and `RngCore::fill_bytes`. (#288) 332 - Add `RngCore::try_fill_bytes`. (#225)
|