Skip to content

Separate rand_thread crate? #716

@dhardy

Description

@dhardy

Synopsis: create a new rand_thread crate to house ThreadRng and make rand depend on that.

Motivation:

Reasons not to do this:

  • this crate would only have 1-2 less dependencies than randrand_pcg (which might be removed from rand anyway) and possibly autocfg
  • this is yet another crate for users of Rand as a whole
  • likely someone would want some extra functionality, such as generating uniform integers within a given range, and thus have to add a dependency on rand anyway (or roll their own code which is easy to get wrong with bias and off-by-one errors and would miss our various specialisations and optimisations)

To be clear: my personal opinion is that we don't need this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-questionParticipation: opinions wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions