Random number generator for kazvcrypto (Est: 25, Act: 28+2i)
Calling genRandom()
inside Crypto does not look like a good idea.
- Generating random numbers is a sort of I/O, so it is violating sans-io policies.
- We do not have a good way to customize the implementation of rng (since Crypto needs to be a value type, we do not want to store a lambda there). Using
random_device
all the time may not be desirable. - We should instead make rng into Deps, and only call it from within kazvclient.
Edited by tusooa