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
rand — rand_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.
Synopsis: create a new
rand_threadcrate to houseThreadRngand makeranddepend on that.Motivation:
randchanges slow down and simplify the API before making new versions? #704Reasons not to do this:
rand—rand_pcg(which might be removed fromrandanyway) and possiblyautocfgrandanyway (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.