Skip to content

Implement rand::Distribution for Array #151

Closed as not planned
Closed as not planned

Description

@daxpedda

See Distribution. This would let users more easily create random Arrays.

Activity

  1. tarcieri commented on Sep 26, 2025

    @tarcieri
    Member

    rand now depends on chacha20: rust-random/rand#1642

    So we can't make any crate which is a dependency of chacha20 depend on rand, which includes hybrid-array.

    How about arbitrary instead?

  2. daxpedda commented on Sep 26, 2025

    @daxpedda
    Author

    So we can't make any crate which is a dependency of chacha20 depend on rand, which includes hybrid-array.

    Maybe we can talk about adding the implementation there then.

    How about arbitrary instead?

    Both would be great!

  3. tarcieri commented on Sep 26, 2025

    @tarcieri
    Member

    Here's arbitrary support: #153

  4. tarcieri commented on Sep 26, 2025

    @tarcieri
    Member

    I think that's the best we can do on this side. Maybe open an issue on https://github.com/rust-random/rand about rand::Distribution? Though it seems a little weird to me to do it that way

  5. daxpedda commented on Sep 26, 2025

    @daxpedda
    Author

    Though it seems a little weird to me to do it that way

    Well, I'm not aware of any alternative really :/

    Opened a new issue there: rust-random/rand#1662.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions