tink-rust
tink-rust copied to clipboard
Centralize dependency on Rng instance
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.