aboutsummaryrefslogtreecommitdiff
path: root/embassy-traits/src
diff options
context:
space:
mode:
authorBob McWhirter <[email protected]>2021-05-06 14:33:29 -0400
committerBob McWhirter <[email protected]>2021-05-06 14:35:46 -0400
commite8537ca9c2f5f5a202c16da26d214fc0db5e65ab (patch)
treee5dff86fa1e3b3e1629e9488e17184935901cc9b /embassy-traits/src
parent1eb70a7e5d8157041e28caf2c176ac4dde78e4c2 (diff)
Implement async RNG, including rand_core sync traits.
Diffstat (limited to 'embassy-traits/src')
-rw-r--r--embassy-traits/src/rng.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-traits/src/rng.rs b/embassy-traits/src/rng.rs
index af786bd4a..ddc4c20e0 100644
--- a/embassy-traits/src/rng.rs
+++ b/embassy-traits/src/rng.rs
@@ -13,5 +13,5 @@ pub trait Rng {
13 /// May result in delays if entropy is exhausted prior to completely 13 /// May result in delays if entropy is exhausted prior to completely
14 /// filling the buffer. Upon completion, the buffer will be completely 14 /// filling the buffer. Upon completion, the buffer will be completely
15 /// filled or an error will have been reported. 15 /// filled or an error will have been reported.
16 fn fill<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a>; 16 fn fill_bytes<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a>;
17} 17}