Prem Chaitanya Prathi 97a2722201
fix(tests): wrap or pass Rng correctly for 3-arg PrivateKey.random
libp2p v2.0.0's `random(T, scheme, rng)` overload takes `Rng` (the new
wrapper type). Pre-existing call sites in tests/wakunode_rest and
tests/waku_discv5 still passed `rng[]` (dereferenced HmacDrbgContext).

- tests/wakunode_rest/test_rest_{health,cors,debug}.nim: wrap
  `common.rng()` (ref HmacDrbgContext) via newBearSslRng to get an Rng.
- tests/waku_discv5/test_waku_discv5.nim: `myRng` is already an Rng
  (from `libp2p_keys.newRng()`), so drop the `[]` deref and pass it
  directly to `random(Secp256k1, myRng)`.
2026-06-04 18:17:12 +05:30
..