Skip to content

Commit

Permalink
publish bolero-generator 0.11.1 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft authored Jun 20, 2024
1 parent 8482df2 commit 8ee8a20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bolero-generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bolero-generator"
version = "0.11.0"
version = "0.11.1"
authors = ["Cameron Bytheway <bytheway.cameron@gmail.com>"]
description = "value generator for testing and fuzzing"
homepage = "https://github.com/camshaft/bolero"
Expand Down
2 changes: 1 addition & 1 deletion lib/bolero-generator/src/driver/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ macro_rules! gen_from_bytes {
#[inline(always)]
fn gen_bool(&mut self, probability: Option<f32>) -> Option<bool> {
if let Some(probability) = probability {
let value = self.sample_u32()? as f32 / core::u32::MAX as f32;
let value = self.sample_u32()? as f32 / u32::MAX as f32;
Some(value < probability)
} else {
self.sample_bool()
Expand Down

0 comments on commit 8ee8a20

Please sign in to comment.