Skip to content

Proposal: Providing a no-runtime-rng version using a feature gate #275

@sjfhsjfh

Description

@sjfhsjfh

Currently, ahash and getrandom is used

ahash: default-features = false, features = ["std"]
getrandom: rewrite a small rng using rand = { version = "0.9.0", default-features = false, features = ["small_rng"] }

These optional modifications can be applied when the runtime-rng feature flag is not present.

I made a working example here, but I'm not very sure if this is the best way of doing this and there're some problems(e.g. the image feature uses rand crate, this can be seen from cargo tree --target all -i getrandom), so it is currently just a proposal.

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