We currently often have let mut rng = OsRng; in the code, in particular in src/keygen.rs, including in the current PR #12.
It would be better to have rng given as parameter, implementing RngCore and CryptoRng (necessary for Scalar::random()) to give more flexibility than just OsRng)
We currently often have
let mut rng = OsRng;
in the code, in particular in src/keygen.rs, including in the current PR #12. It would be better to haverng
given as parameter, implementingRngCore
andCryptoRng
(necessary forScalar::random()
) to give more flexibility than just OsRng)