vacp2p / nim-libp2p

libp2p implementation in Nim
https://vacp2p.github.io/nim-libp2p/docs/
MIT License
242 stars 52 forks source link

use a mock rng in tests #1085

Open diegomrsantos opened 2 months ago

diegomrsantos commented 2 months ago

This PR tries to use a faster and non-secure number generation for tests. It currently doesn't work as the key generation hangs when calling the mock vtable. I don't know if there's an error in the way it is implemented or if it's just not possible to use a poor random number generator when creating RSA keys and similar ones.