/external/rust/crates/rand/src/rngs/ |
D | std.rs | 34 pub struct StdRng(Rng); struct 36 impl RngCore for StdRng { implementation 58 impl SeedableRng for StdRng { implementation 63 StdRng(Rng::from_seed(seed)) in from_seed() 68 Rng::from_rng(rng).map(StdRng) in from_rng() 72 impl CryptoRng for StdRng {} implementation 77 use crate::rngs::StdRng; 90 let mut rng0 = StdRng::from_seed(seed); in test_stdrng_construction() 93 let mut rng1 = StdRng::from_rng(rng0).unwrap(); in test_stdrng_construction()
|
D | mod.rs | 115 #[cfg(feature = "std_rng")] pub use self::std::StdRng;
|
/external/rust/beto-rust/nearby/connections/ukey2/ukey2_connections/src/ |
D | d2d_handshake_context.rs | 18 use rand::{rngs::StdRng, SeedableRng as _}; 46 pub trait D2DHandshakeContext<R = rand::rngs::StdRng>: Send 93 pub struct InitiatorD2DHandshakeContext<C: CryptoProvider, R = rand::rngs::StdRng> 101 impl<C: CryptoProvider> InitiatorD2DHandshakeContext<C, rand::rngs::StdRng> { 103 Self::new_impl(handshake_impl, rand::rngs::StdRng::from_entropy()) in new() 116 D2DConnectionContextV1::<StdRng>::NEXT_PROTOCOL_IDENTIFIER.to_owned(), in new_impl() 196 pub struct ServerD2DHandshakeContext<C: CryptoProvider, R = rand::rngs::StdRng> 204 impl<C: CryptoProvider> ServerD2DHandshakeContext<C, rand::rngs::StdRng> { 206 Self::new_impl(handshake_impl, rand::rngs::StdRng::from_entropy()) in new() 220 D2DConnectionContextV1::<rand::rngs::StdRng>::NEXT_PROTOCOL_IDENTIFIER in new_impl()
|
D | tests.rs | 17 use rand::{rngs::StdRng, CryptoRng, RngCore}; 38 encrypt::<_, C::AesCbcPkcs7Padded>(key, message, &mut rand::rngs::StdRng::from_entropy()); in crypto_test_encrypt_decrypt() 84 &mut rand::rngs::StdRng::from_entropy(), in decrypt_test_wrong_key() 95 run_handshake_with_rng::<C, _>(rand::rngs::StdRng::from_entropy()) in run_handshake() 287 StdRng::from_entropy(), in test_unique_session()
|
D | d2d_connection_context_v1.rs | 114 pub struct D2DConnectionContextV1<R = rand::rngs::StdRng> 159 impl D2DConnectionContextV1<rand::rngs::StdRng> { 161 Self::from_saved_session_with_rng::<C>(session, rand::rngs::StdRng::from_entropy()) in from_saved_session()
|
/external/rust/beto-rust/nearby/presence/ldt/tests/ |
D | ldt_roundtrip.rs | 20 use rand::rngs::StdRng; 28 let mut rc_rng = rand::rngs::StdRng::from_entropy(); in roundtrip_normal_padder() 57 let mut rc_rng = rand::rngs::StdRng::from_entropy(); in roundtrip_xor_padder() 100 let mut rng_rc = StdRng::from_entropy(); in do_roundtrip()
|
/external/rust/beto-rust/nearby/connections/ukey2/ukey2/tests/ |
D | tests.rs | 16 use rand::{rngs::StdRng, SeedableRng}; 27 let mut rng = StdRng::from_entropy(); in full_integration_state_machine() 76 let mut rng = StdRng::from_entropy(); in full_integration_state_machine_public_key_in_protobuf()
|
/external/rust/crates/criterion/src/stats/ |
D | test.rs | 3 use rand::rngs::StdRng; 10 let mut rng = StdRng::from_entropy(); in vec()
|
/external/rust/beto-rust/nearby/crypto/crypto_provider_rustcrypto/src/ |
D | x25519.rs | 118 use rand::rngs::StdRng; 121 fn x25519_tests(testcase: CryptoProviderTestCase<X25519Ecdh<StdRng>>) { in x25519_tests() argument 122 testcase(PhantomData::<X25519Ecdh<StdRng>>) in x25519_tests()
|
D | p256.rs | 143 use rand::rngs::StdRng; 146 fn p256_tests(testcase: CryptoProviderTestCase<P256Ecdh<StdRng>>) { in p256_tests() argument 147 testcase(PhantomData::<P256Ecdh<StdRng>>) in p256_tests()
|
D | lib.rs | 54 pub type RustCrypto = RustCryptoImpl<rand::rngs::StdRng>;
|
/external/rust/beto-rust/nearby/connections/ukey2/ukey2/src/ |
D | tests.rs | 26 use rand::rngs::StdRng; 38 let mut rng = StdRng::from_entropy(); in advance_from_init_to_finish_client_test() 76 let mut rng = StdRng::from_entropy(); in advance_from_init_to_complete_server_x25519_test() 136 let mut rng = StdRng::from_entropy(); in advance_from_init_to_complete_server_p256_test()
|
/external/rust/crates/rand/src/ |
D | prelude.rs | 26 #[doc(no_inline)] pub use crate::rngs::StdRng;
|
/external/rust/crates/rand/ |
D | CHANGELOG.md | 21 - `StdRng`: Switch from HC128 to ChaCha12 on emscripten (#1142). 73 - `StdRng`: add new `std_rng` feature flag (enabled by default, but might need 75 - `StdRng`: Switch from ChaCha20 to ChaCha12 for better performance (#1028) 86 - Support `PartialEq` and `Eq` for `StdRng`, `SmallRng` and `StepRng` (#979) 171 - Use ChaCha for `StdRng` and `ThreadRng` (#792) 374 - Switch `StdRng` and `thread_rng` to HC-128. (#277) 375 - `StdRng` must now be created with `from_entropy` instead of `new` 621 - `StdRng`, `SeedableRng`, `TreadRng`, `weak_rng()`
|
D | Cargo.toml.orig | 47 # Option (enabled by default): enable StdRng
|
D | README.md | 118 - `std_rng` enables inclusion of `StdRng`, `thread_rng` and `random`
|
/external/rust/beto-rust/nearby/presence/ldt/examples/ |
D | gen_ldt_xor_pad_test_vectors.rs | 25 let mut rng = rand::rngs::StdRng::from_entropy(); in main()
|
D | ldt_benchmark.rs | 62 let mut rc_rng = rand::rngs::StdRng::from_entropy(); in main()
|
/external/rust/crates/tokio/tests/ |
D | time_pause.rs | 5 use rand::{rngs::StdRng, Rng}; 59 let mut rng = StdRng::seed_from_u64(1); in paused_time_stress_run()
|
/external/rust/crates/rand_xorshift/ |
D | README.md | 15 requirements, use a more secure one such as `StdRng` or `OsRng`.
|
/external/rust/crates/itertools/tests/ |
D | test_std.rs | 2 use rand::{distributions::{Distribution, Standard}, Rng, SeedableRng, rngs::StdRng}; 442 struct RandIter<T: 'static + Clone + Send, R: 'static + Clone + Rng + SeedableRng + Send = StdRng> {
|