[][src]Module snarkos_polycommit::optional_rng

A random number generator that bypasses some limitations of the Rust borrow checker.

Structs

OptionalRng

OptionalRng is a hack that is necessary because Option<&mut R> is not implicitly reborrowed like &mut R is. This causes problems when a variable of type Option<&mut R> is moved (eg, in a loop).