diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-07-09 14:25:23 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-07-11 10:21:34 -0700 |
| commit | 5e203851f7203d5ad4298d54c50008f24a34b793 (patch) | |
| tree | 167387280bbf38a6635131736c9fe13389730dce /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 4c947984d64ae63a71c5441082a35309b9198fbf (diff) | |
| download | rust-5e203851f7203d5ad4298d54c50008f24a34b793.tar.gz rust-5e203851f7203d5ad4298d54c50008f24a34b793.zip | |
random: Provide a `Distribution<T>` trait
This will let people make calls like random(1..=6), and 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 commits will implement it for other range types.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
