-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
rand 0.9 beta error - isize: SampleUniform is not satisfied #1540
Comments
This is intentional: #1487. Why do you need this? |
oh okay! so is this a breaking change then? i didnt see it mentioned in changelog but maybe im missing something. i am making a game with a 2d maze and i use it for my teleport function:
it's not that important though so i can just refactor it. thanks for the info! im using usize and isize because im doing indexing into 2d arrays and thats what rust asks for was able to get around it by doing this (since you can make an isize from an i16):
|
Then I recommend you pick a fixed size integer like The reason we did this was because of various complaints of a hidden portability hazard: generating a random It comes under this entry in the changelog, but you're right that it's unclear:
|
sure thing! thanks again for the replies! good luck with 0.9! looking forward to it!! 🥳 |
i used to be able to do rng.gen with isize but not anymore
The text was updated successfully, but these errors were encountered: