Skip to content

Commit c7c52a5

Browse files
Added a debug_assert
1 parent 485d015 commit c7c52a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/seq/increasing_uniform.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ impl<R: RngCore> IncreasingUniform<R> {
6767
fn calculate_bound_u32(m: u32) -> (u32, u8) {
6868
#[inline]
6969
const fn inner(m: u32) -> (u32, u8) {
70+
debug_assert!(m > 0);
7071
let mut product = m;
7172
let mut current = m + 1;
7273

0 commit comments

Comments
 (0)