Skip to content

Upgrade rand to 0.10, rand_distr to 0.6 #21839

Description

@Jefffrey

Is your feature request related to a problem or challenge?

Dependabot has a PR to upgrade rand_distr:

This is currently blocked as it requires rand = "0.10":

However it seems dependabot isn't raising a PR for rand = "0.10" because it removed a feature we use, small_rng.

Describe the solution you'd like

Manually upgrade to rand = "0.10" and rand_dist = "0.6"

rand = { workspace = true, features = ["small_rng"] }
rand_distr = "0.5"

rand = "0.9"

What is involved:

rng.clone().sample_iter(&Alphanumeric).take(len).collect();

rng.fill(&mut values[..]);

  • arrow-rs still depends on rand = "0.9" and we interface with this, so we need to upgrade arrow-rs
    • create_primitive_array comes from arrow-rs

let values = create_primitive_array::<T>(length, 0.0);

Describe alternatives you've considered

No response

Additional context

See changelog for rand:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions