tink-rust icon indicating copy to clipboard operation
tink-rust copied to clipboard

Centralize dependency on Rng instance

Open daviddrysdale opened this issue 4 years ago • 0 comments

Use tink_core::subtle::random::rng() to return an instance of the tink_core::subtle::random::Generator trait, which is just a combination of rand::RngCore and rand::CryptoRng.

Use this rng() instance throughout the code.

Drop a couple of direct dependencies on rand which were not needed.

daviddrysdale avatar Jul 22 '21 14:07 daviddrysdale