Skip to content

Dependency conflicts with rand 0.9 #59

@eddieschoute

Description

@eddieschoute

I'm running into some issues when depending on the rand crate version 0.9, and when using this version to generate random BInt objects.
For example,

let c: BInt<4> = rng.random();

gives the error

error[E0277]: the trait bound `StandardUniform: Distribution<BInt<4>>` is not satisfied
   --> src/zomega.rs:333:30
    |
333 |         let c: BInt<4> = rng.random();
    |                              ^^^^^^ the trait `Distribution<BInt<4>>` is not implemented for `StandardUniform

I also get a bunch of warning about conflicting rand crates in my dependency tree when loading traits from bnum.

I figure the easiest solution is to upgrade rand to 0.9, but I understand if that would require some rewriting to use the newer API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions