error: use of deprecated method `soroban_sdk::prng::Prng::u64_in_range`: use env.prng().gen_range(...)
--> contracts/shared/src/rand.rs:21:20
|
21 | env.prng().u64_in_range(1..=max_range as u64) as u32
| ^^^^^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: could not compile `shared` (lib) due to previous error
To Reproduce
Compile any contract that uses the API
Describe the bug
To Reproduce Compile any contract that uses the API