diff --git a/fuzzers/baby/tutorial/Cargo.toml b/fuzzers/baby/tutorial/Cargo.toml index 3c1cb4afae..ba6c38c9da 100644 --- a/fuzzers/baby/tutorial/Cargo.toml +++ b/fuzzers/baby/tutorial/Cargo.toml @@ -32,9 +32,9 @@ libafl_targets = { path = "../../../libafl_targets", features = [ serde = { version = "1.0.210", default-features = false, features = [ "alloc", ] } # serialization lib -lain = { version = "0.5.5", features = [ +lain = { version = "0.5.6", features = [ "serde_support", -], git = "https://github.com/AFLplusplus/lain.git", rev = "208e927bcf411f62f8a1f51ac2d9f9423a1ec5d3" } # We're using a lain fork compatible with libafl's rand version +], git = "https://github.com/AFLplusplus/lain.git", rev = "6ac90a35cfff15e314cf33b098f6cac4691c7ab3" } # We're using a lain fork compatible with libafl's rand version # TODO Include it only when building cc libafl_cc = { path = "../../../libafl_cc" } log = { version = "0.4.22", features = ["release_max_level_info"] } diff --git a/libafl_bolts/Cargo.toml b/libafl_bolts/Cargo.toml index 4a5be81404..4eb69551be 100644 --- a/libafl_bolts/Cargo.toml +++ b/libafl_bolts/Cargo.toml @@ -143,7 +143,7 @@ backtrace = { workspace = true, default-features = true, optional = true } # Use ctor = { optional = true, version = "0.2.9" } miniz_oxide = { version = "0.8.0", optional = true } hostname = { version = "0.4.0", optional = true } # Is there really no gethostname in the stdlib? -rand_core = { version = "0.6.4", optional = true } +rand_core = { version = "0.9.0", optional = true } nix = { workspace = true, optional = true, default-features = false, features = [ "fs", "signal", diff --git a/libafl_bolts/src/rands/mod.rs b/libafl_bolts/src/rands/mod.rs index 2490b2a9e5..5c72e2c5ab 100644 --- a/libafl_bolts/src/rands/mod.rs +++ b/libafl_bolts/src/rands/mod.rs @@ -263,10 +263,6 @@ macro_rules! impl_rng_core { fn fill_bytes(&mut self, dest: &mut [u8]) { rand_core::impls::fill_bytes_via_next(self, dest) } - - fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> { - Ok(self.fill_bytes(dest)) - } } }; }