remove box in propose

This commit is contained in:
Logan Collins 2018-10-31 01:08:09 -05:00
parent e3a168a96c
commit 09833f2b56
1 changed files with 1 additions and 5 deletions

View File

@ -215,11 +215,7 @@ where
}
/// If the instance hasn't terminated yet, inputs our encrypted contribution.
pub fn propose(
&mut self,
proposal: &C,
rng: &mut Box<dyn Rng + Send + Sync>,
) -> Result<Step<C, N>> {
pub fn propose<R: Rng>(&mut self, proposal: &C, rng: &mut R) -> Result<Step<C, N>> {
let ser_prop =
bincode::serialize(&proposal).map_err(|err| ErrorKind::ProposeBincode(*err))?;
let cs_step = self.subset.handle_input(if self.require_decryption {