Home
last modified time | relevance | path

Searched refs:RngCore (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/crates/rand/src/rngs/adapter/
Dreseeding.rs16 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,
Dread.rs15 use rand_core::{impls, Error, RngCore};
58 impl<R: Read> RngCore for ReadRng<R> {
109 use crate::RngCore;
/external/rust/crates/rand_core/src/
Dlib.rs137 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
Dimpls.rs20 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()
Dos.rs11 use crate::{impls, CryptoRng, Error, RngCore};
52 impl RngCore for OsRng {
Dblock.rs57 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/
DCHANGELOG.md14 - 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)
DREADME.md13 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/
Dstd.rs11 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};
Dsmall.rs11 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()
Dmock.rs11 use rand_core::{impls, Error, RngCore};
48 impl RngCore for StepRng {
Dthread.rs18 use crate::{CryptoRng, Error, RngCore, SeedableRng};
98 impl RngCore for ThreadRng {
Dxoshiro256plusplus.rs12 use rand_core::{SeedableRng, RngCore, Error};
61 impl RngCore for Xoshiro256PlusPlus {
Dxoshiro128plusplus.rs12 use rand_core::{SeedableRng, RngCore, Error};
61 impl RngCore for Xoshiro128PlusPlus {
/external/rust/crates/rand_xorshift/src/
Dlib.rs22 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/
Drng.rs12 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()
Dlib.rs95 pub use rand_core::{CryptoRng, Error, RngCore, SeedableRng};
194 pub fn rng(seed: u64) -> impl RngCore { in rng() argument
Dprelude.rs34 #[doc(no_inline)] pub use crate::{CryptoRng, Rng, RngCore, SeedableRng};
/external/rust/crates/vsock/tests/
Dvsock.rs17 use rand::RngCore;
/external/rust/crates/rand_chacha/src/
Dchacha.rs17 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/
Dother.rs208 use crate::RngCore;
213 let rng: &mut dyn RngCore = &mut crate::test::rng(820); in test_misc()
Duniform.rs113 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/
Dmod.rs1 use rand_core::{RngCore, SeedableRng};
/external/crosvm/fuzz/
Dvirtqueue_fuzzer.rs12 use rand::{Rng, RngCore};
/external/rust/crates/rand/
DCHANGELOG.md312 - 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)

12