Skip to content

Commit

Permalink
Remove Distribution<u64> support for Poisson
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Oct 24, 2024
1 parent 6687b6e commit 4ec192a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rand_distr/src/poisson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,6 @@ where
}
}

impl Distribution<u64> for Poisson<f64> {
#[inline]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u64 {
// `as` from float to int saturates
<Poisson<f64> as Distribution<f64>>::sample(self, rng) as u64
}
}

#[cfg(test)]
mod test {
use super::*;
Expand Down

0 comments on commit 4ec192a

Please sign in to comment.