Skip to content

rand_os crate has no purpose now #854

Description

@burdges

If I understand, rand_core now depends upon getrandom for SeedableRng::from_entropy, which makes the rand_os crate pointless.

Ideally, I'd think OsRng should be merged into rand_core, rand_os should be deprecated, and the SeedableRng::from_entropy method removed.

Alternatively, you might remove both SeedableRng::from_entropy method and the rand_core dependency on getrandom, making rand_os the only crate that ever depends upon getrandom, so getrandom could be folded into rand_os, but nobody cares.

In all cases, there should be no crates anywhere besides the one containing OsRng that depend upon getrandom, but some crate called getrandom or rand_os separates out the OS specific code.

In all cases, RandCore v0.4 and v0.6? agree, so you can yank this whole RandCore v0.5 breakage mess.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions