Remove dependency on rand
Because we invoke thread_rng directly we have to also depend on getrandom in order to set certain feature flags to get things to compile on wasm.
Can we just depend on rand_core and let users pass in anything implement RngCore? This would simplify dependencies a bit. The place where this will be most tricky is in tx building but I hope it can be done.
We should try and attempt this before v1.
Would this imply TxBuilder would be initiated with impl Into<RngCore>? My gut feeling is that would cause problems for the UniFFI bindings.
Ok but the FFI bindings can depend on rand and pass in ThreadRng if they want to?
Good point. I will try working on this.
We could consider making TxParams generic over R and adding a field rng: Option<R>.