Skip to content

Commit ace2a76

Browse files
authored
Update rand_core (#2919)
* a * upd lain
1 parent 75feedd commit ace2a76

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

fuzzers/baby/tutorial/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ libafl_targets = { path = "../../../libafl_targets", features = [
3232
serde = { version = "1.0.210", default-features = false, features = [
3333
"alloc",
3434
] } # serialization lib
35-
lain = { version = "0.5.5", features = [
35+
lain = { version = "0.5.6", features = [
3636
"serde_support",
37-
], git = "https://github.com/AFLplusplus/lain.git", rev = "208e927bcf411f62f8a1f51ac2d9f9423a1ec5d3" } # We're using a lain fork compatible with libafl's rand version
37+
], git = "https://github.com/AFLplusplus/lain.git", rev = "6ac90a35cfff15e314cf33b098f6cac4691c7ab3" } # We're using a lain fork compatible with libafl's rand version
3838
# TODO Include it only when building cc
3939
libafl_cc = { path = "../../../libafl_cc" }
4040
log = { version = "0.4.22", features = ["release_max_level_info"] }

libafl_bolts/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ backtrace = { workspace = true, default-features = true, optional = true } # Use
143143
ctor = { optional = true, version = "0.2.9" }
144144
miniz_oxide = { version = "0.8.0", optional = true }
145145
hostname = { version = "0.4.0", optional = true } # Is there really no gethostname in the stdlib?
146-
rand_core = { version = "0.6.4", optional = true }
146+
rand_core = { version = "0.9.0", optional = true }
147147
nix = { workspace = true, optional = true, default-features = false, features = [
148148
"fs",
149149
"signal",

libafl_bolts/src/rands/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,6 @@ macro_rules! impl_rng_core {
263263
fn fill_bytes(&mut self, dest: &mut [u8]) {
264264
rand_core::impls::fill_bytes_via_next(self, dest)
265265
}
266-
267-
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
268-
Ok(self.fill_bytes(dest))
269-
}
270266
}
271267
};
272268
}

0 commit comments

Comments
 (0)