Closed devnexen closed 1 week ago
r? @Mark-Simulacrum
rustbot has assigned @Mark-Simulacrum. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r?
to explicitly pick a reviewer
Cc @josephlr who just filed https://github.com/rust-random/getrandom/pull/417
For the uses in libstd (generating random hashmap seeds), using getrandom with flags = 0 is definitely the right call (on both illumos and Solaris). You also don't have to worry about maximum buffer size issues on Solaris as you will only be requesting 16 bytes at a time.
Maybe there should be a comment explaining that. It seems confusing that this would use a different function than the getrandom crate.
This helps with https://github.com/rust-lang/miri/issues/3567.
(@devnexen when you open a PR that is related to some issue, please mention the issue in the PR description. That helps give context to the reviewer, and to whoever is looking at the issue it helps determine the current status. Generally, PRs should almost always have a description that explains what is done and why.)
@bors r+ rollup
To help solarish support for miri https://https://github.com/rust-lang/miri/issues/3567