Home
last modified time | relevance | path

Searched refs:StdRng (Results 1 – 21 of 21) sorted by relevance

/external/rust/crates/rand/src/rngs/
Dstd.rs34 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()
Dmod.rs115 #[cfg(feature = "std_rng")] pub use self::std::StdRng;
/external/rust/beto-rust/nearby/connections/ukey2/ukey2_connections/src/
Dd2d_handshake_context.rs18 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()
Dtests.rs17 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()
Dd2d_connection_context_v1.rs114 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/
Dldt_roundtrip.rs20 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/
Dtests.rs16 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/
Dtest.rs3 use rand::rngs::StdRng;
10 let mut rng = StdRng::from_entropy(); in vec()
/external/rust/beto-rust/nearby/crypto/crypto_provider_rustcrypto/src/
Dx25519.rs118 use rand::rngs::StdRng;
121 fn x25519_tests(testcase: CryptoProviderTestCase<X25519Ecdh<StdRng>>) { in x25519_tests() argument
122 testcase(PhantomData::<X25519Ecdh<StdRng>>) in x25519_tests()
Dp256.rs143 use rand::rngs::StdRng;
146 fn p256_tests(testcase: CryptoProviderTestCase<P256Ecdh<StdRng>>) { in p256_tests() argument
147 testcase(PhantomData::<P256Ecdh<StdRng>>) in p256_tests()
Dlib.rs54 pub type RustCrypto = RustCryptoImpl<rand::rngs::StdRng>;
/external/rust/beto-rust/nearby/connections/ukey2/ukey2/src/
Dtests.rs26 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/
Dprelude.rs26 #[doc(no_inline)] pub use crate::rngs::StdRng;
/external/rust/crates/rand/
DCHANGELOG.md21 - `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()`
DCargo.toml.orig47 # Option (enabled by default): enable StdRng
DREADME.md118 - `std_rng` enables inclusion of `StdRng`, `thread_rng` and `random`
/external/rust/beto-rust/nearby/presence/ldt/examples/
Dgen_ldt_xor_pad_test_vectors.rs25 let mut rng = rand::rngs::StdRng::from_entropy(); in main()
Dldt_benchmark.rs62 let mut rc_rng = rand::rngs::StdRng::from_entropy(); in main()
/external/rust/crates/tokio/tests/
Dtime_pause.rs5 use rand::{rngs::StdRng, Rng};
59 let mut rng = StdRng::seed_from_u64(1); in paused_time_stress_run()
/external/rust/crates/rand_xorshift/
DREADME.md15 requirements, use a more secure one such as `StdRng` or `OsRng`.
/external/rust/crates/itertools/tests/
Dtest_std.rs2 use rand::{distributions::{Distribution, Standard}, Rng, SeedableRng, rngs::StdRng};
442 struct RandIter<T: 'static + Clone + Send, R: 'static + Clone + Rng + SeedableRng + Send = StdRng> {