Searched refs:RandomSource (Results 1 – 3 of 3) sorted by relevance
29 BufferedSource source = Okio.buffer(new RandomSource(random, 5)); in run()33 static final class RandomSource implements Source { class in Randoms37 RandomSource(Random random, long bytesLeft) { in RandomSource() method in Randoms.RandomSource
49 static RAND_SOURCE: OnceBox<Box<dyn RandomSource + Send + Sync>> = OnceBox::new();62 pub trait RandomSource { interface102 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()
25 static RAND_SOURCE: OnceBox<Box<dyn RandomSource + Send + Sync>> = OnceBox::new();38 pub trait RandomSource {39 @@ -98,7 +107,9 @@ impl RandomSource for DefaultRandomSource {