Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of deprecated method soroban_sdk::prng::Prng::u64_in_range #117

Open
geofmureithi opened this issue Dec 5, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@geofmureithi
Copy link
Contributor

geofmureithi commented Dec 5, 2023

Describe the bug

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

@geofmureithi geofmureithi added the bug Something isn't working label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant