mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-06 22:19:30 +00:00
libp2p v2.0.0's 3-arg `random(T, scheme, rng)` overload now takes the `Rng` wrapper type instead of `var HmacDrbgContext`. My prior `common.rng()[]` (deref) attempt resolves to `HmacDrbgContext` which no longer matches. Wrap our existing `ref HmacDrbgContext` (from `common.rng`) via `newBearSslRng` to get an `Rng` value, satisfying the new signature without re-seeding a fresh PRNG on every key generation.