feat(cheatcodes
): add ability to switch between proptest::test_runner::TestRng
and rand::rngs::StdRng
#9626
Labels
Component
Forge
Describe the feature you would like
In #8882,
StdRng
has been replaced byTestRng
, butTestRng
does not implement theCryptoRng
trait. Because of this I can't just passTestRng
in some places and I have to explicitly userand_chacha::ChaChaRng
? For example, I want to port some crypto library from Rust to Solidity and I have to go into theproptest
code, understand thatTestRng
does not implementCryptoRng
and then copy the code fromproptest
which is based onrand_chacha::ChaChaRng
. Maybe it makes sense to create a crate likeforge-rng
that would also implementCryptoRng
and other traits. It might also make sense to allow switching betweenforge-rng
andStdRng
.Additional context
No response
The text was updated successfully, but these errors were encountered: