Skip to content

Doc: improve random, thread_rng, ThreadRng docs#1257

Merged
dhardy merged 4 commits into
masterfrom
work7
Sep 30, 2022
Merged

Doc: improve random, thread_rng, ThreadRng docs#1257
dhardy merged 4 commits into
masterfrom
work7

Conversation

@dhardy

@dhardy dhardy commented Sep 24, 2022

Copy link
Copy Markdown
Member

Closes #1256.

@newpavlov review please?

@dhardy

dhardy commented Sep 24, 2022

Copy link
Copy Markdown
Member Author

once-cell bumped its MSRV to 1.56.0 in the latest release. We should add a Cargo.lock.msrv as recommended in matklad/once_cell#201.

@newpavlov newpavlov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. As for the once-cell issue, ideally rust-version should be used for dependencies resolution, but alas...

@newpavlov

Copy link
Copy Markdown
Member

Another option is to remove once_cell from out dependency tree, as done by some other projects.

@dhardy

dhardy commented Sep 29, 2022

Copy link
Copy Markdown
Member Author

crossbeam 0.8.12 no longer depends on once_cell.

@newpavlov

Copy link
Copy Markdown
Member

@dhardy
Maybe it's worth to enable the "automatically delete head branches" setting for this repository?

@dhardy

dhardy commented Sep 30, 2022

Copy link
Copy Markdown
Member Author

@newpavlov I reuse "work" branches — that's why it doesn't have a topical name. Which branches should be deleted? This should possibly be a new issue.

@newpavlov

newpavlov commented Sep 30, 2022

Copy link
Copy Markdown
Member

It's just that I usually use per-feature branches, i.e. I create a new branch for every PR. I think you can keep reusing "work" branches even with automatic deletion, you would simply need to do remote push for each new PR.

Comment thread src/rngs/thread.rs
/// (every 64 kiB, as well as "soon" after a fork on Unix — see [`ReseedingRng`]
/// documentation for details).
///
/// Security must be considered relative to a thread model and validation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: threat -> threat

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but this is merged already. Can you make a PR? (Should be possible through the GitHub web UI.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rand::random Documentation

3 participants