about summary refs log tree commit diff
path: root/compiler/rustc_passes/src
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-07-14 18:05:44 +0200
committerGitHub <noreply@github.com>2025-07-14 18:05:44 +0200
commit30b46e3f8cb0116d5ca6a183b370ad3935e34dc8 (patch)
treed5649b2f4b137c0104c406ab8240ffb0597fb8a8 /compiler/rustc_passes/src
parent74b5ac5c15827b9d4e07a5d3f79b6ef787e50bfb (diff)
parent377aa764aacabbf32c1d0e91312071660b14c919 (diff)
downloadrust-30b46e3f8cb0116d5ca6a183b370ad3935e34dc8.tar.gz
rust-30b46e3f8cb0116d5ca6a183b370ad3935e34dc8.zip
Rollup merge of #143710 - joshtriplett:random-updates, r=joshtriplett
Updates to random number generation APIs

Updates based on discussions about random number generation.

- Add comment on `RandomSource::fill_bytes` about multiple calls, to allow
  efficient implementations for random sources that generate a word at a time.

- Drop the `Random` trait in favor of `Distribution<T>`, which will let people
  make calls like random(1..=6), and which allows for future expansion to
  non-uniform distributions, as well as floating-point. (For now, this is only
  implemented for `RangeFull`, to get the interface in place. Subsequent PRs
  will implement it for other range types.)
Diffstat (limited to 'compiler/rustc_passes/src')
0 files changed, 0 insertions, 0 deletions