mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
workaround trng trait inconsistency
0.5.1 rand_core needed for the dalek crates 0.6.3 traits everywhere else what a mess turns out i can just use fill_via_next() to do the same thing without having to step on cross-generation traits. whew. (also not in tree but doing a quick manual test that fill_via_next() is not totally broken)
This commit is contained in:
parent
8690d955d0
commit
b329023091
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ impl XousRng256 {
|
|||
impl Rng256 for XousRng256 {
|
||||
fn gen_uniform_u8x32(&mut self) -> [u8; 32] {
|
||||
let mut buf: [u8; 32] = [Default::default(); 32];
|
||||
self.trng.fill_bytes(&mut buf);
|
||||
self.trng.fill_bytes_via_next(&mut buf);
|
||||
buf
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue