Implement async RNG, including rand_core sync traits.

This commit is contained in:
Bob McWhirter
2021-05-06 14:33:29 -04:00
parent 1eb70a7e5d
commit e8537ca9c2
10 changed files with 3449 additions and 3332 deletions

View File

@ -13,5 +13,5 @@ pub trait Rng {
/// May result in delays if entropy is exhausted prior to completely
/// filling the buffer. Upon completion, the buffer will be completely
/// filled or an error will have been reported.
fn fill<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a>;
fn fill_bytes<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a>;
}