Home
last modified time | relevance | path

Searched refs:RandomSource (Results 1 – 3 of 3) sorted by relevance

/external/okio/samples/src/jvmMain/java/okio/samples/
DRandoms.java29 BufferedSource source = Okio.buffer(new RandomSource(random, 5)); in run()
33 static final class RandomSource implements Source { class in Randoms
37 RandomSource(Random random, long bytesLeft) { in RandomSource() method in Randoms.RandomSource
/external/rust/crates/ahash/src/
Drandom_state.rs49 static RAND_SOURCE: OnceBox<Box<dyn RandomSource + Send + Sync>> = OnceBox::new();
62 pub trait RandomSource { interface
102 impl RandomSource for DefaultRandomSource {
188 … pub fn set_random_source(source: impl RandomSource + Send + Sync + 'static) -> Result<(), bool> { in set_random_source()
194 fn get_src() -> &'static dyn RandomSource { in get_src()
200 fn get_src() -> &'static dyn RandomSource { in get_src()
/external/rust/crates/ahash/patches/
D0001-Use-dev-urandom-instead-of-getrandom.patch25 static RAND_SOURCE: OnceBox<Box<dyn RandomSource + Send + Sync>> = OnceBox::new();
38 pub trait RandomSource {
39 @@ -98,7 +107,9 @@ impl RandomSource for DefaultRandomSource {