You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
rustaceanrob commentedon Mar 22, 2024
Would this imply
TxBuilderwould be initiated withimpl Into<RngCore>? My gut feeling is that would cause problems for the UniFFI bindings.LLFourn commentedon Mar 28, 2024
Ok but the FFI bindings can depend on
randand pass inThreadRngif they want to?rustaceanrob commentedon Mar 28, 2024
Good point. I will try working on this.
ValuedMammal commentedon Apr 7, 2024
We could consider making
TxParamsgeneric overRand adding a fieldrng: Option<R>.Merge bitcoindevkit#1395: Remove `rand` dependency from `bdk`
Merge bitcoindevkit#1395: Remove `rand` dependency from `bdk`