Skip to content

Commit

Permalink
implement UniformSampler<isize>
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Feb 20, 2025
1 parent ec6d5c0 commit 3772f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ You may also find the [Upgrade Guide](https://rust-random.github.io/book/update.
## [Unreleased]
- Fix feature `simd_support` for recent nightly rust (#1586)
- Add `Alphabetic` distribution. (#1587)
- Add `Distribution<usize>` implementation. (#1598)

## [0.9.0] - 2025-01-27
### Security and unsafe
Expand Down
2 changes: 2 additions & 0 deletions src/distr/uniform_int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ uniform_int_impl! { u32, u32, u32 }
uniform_int_impl! { u64, u64, u64 }
uniform_int_impl! { u128, u128, u128 }

uniform_int_impl! { isize, usize, usize }

#[cfg(feature = "simd_support")]
macro_rules! uniform_simd_int_impl {
($ty:ident, $unsigned:ident) => {
Expand Down

0 comments on commit 3772f5a

Please sign in to comment.