Skip to content

Implement Distribution for hybrid_array::Array #1662

@daxpedda

Description

@daxpedda

Because rand depends on chacha20, which in turn depends on hybrid-array, its isn't possible to implement Distribution for hybrid_array::Array in hybrid-array itself.

Therefor I propose adding the implementation in rand itself, behind a crate feature of course.

I understand that this is a big ask, rand isn't in the business of implementing traits for other types, its supposed to be the other way around. But AFAIK there isn't any other way to do this for hybrid_array::Array.

Happy to do the PR upon approval.

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