Remove temporary heap allocations during shuffling (#867)

* Remove temp allocs in compute shuffled index

* Update shuffle list
This commit is contained in:
Paul Hauner
2020-02-25 09:00:09 +11:00
committed by GitHub
parent 2a9c718a20
commit 123c63119d
6 changed files with 91 additions and 36 deletions

View File

@@ -5,7 +5,7 @@
//! defining it once in this crate makes it easy to replace.
#[cfg(not(target_arch = "wasm32"))]
use ring::digest::{digest, Context, SHA256};
pub use ring::digest::{digest, Context, SHA256};
#[cfg(target_arch = "wasm32")]
use sha2::{Digest, Sha256};