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

tests: torture tests don't compile on 32-bit architectures #43

Open
decathorpe opened this issue Mar 14, 2022 · 0 comments
Open

tests: torture tests don't compile on 32-bit architectures #43

decathorpe opened this issue Mar 14, 2022 · 0 comments

Comments

@decathorpe
Copy link

This error occurs when trying to compile / run the test suite on i686 or armv7hfp / Linux:

error[E0308]: mismatched types
  --> tests/torture.rs:17:51
   |
17 |     let mut rng = rand::rngs::SmallRng::from_seed(seed);
   |                                                   ^^^^ expected an array with a fixed size of 16 elements, found one with 32 elements
For more information about this error, try `rustc --explain E0308`.

Note that this error is from compiling num-bigint-dig 0.7.0, but the affected code has not changed since then.

It looks like rand::rngs::SmallRng::from_seed expects a 16-element array on 32-bit architectures and a 32-element array on 64-bit architectures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant