foundry
foundry copied to clipboard
feat(cheatcodes): randomUint
Motivation
Closes #7958 Closes https://github.com/foundry-rs/foundry/issues/5407
Solution
Use rand::thread_rng
Maybe we should add randomUintWithSeed as well? @mattsse
What happened to this feature? I can't find any mention to it on the docs and I can't find any occurrence of randomUint inside forge-std
@Mouradif You may need to update your foundry and forge-std versions, you can see it in forge-std here: https://github.com/foundry-rs/forge-std/blob/ab6de56ed94bed75866c78c62cad882e8a046348/src/Vm.sol#L1607-L1614