Update rand_core (#2919)

* a

* upd lain
This commit is contained in:
Dongjia "toka" Zhang 2025-01-31 19:26:32 +01:00 committed by GitHub
parent 75feedd1a0
commit ace2a76ece
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 7 deletions

View File

@ -32,9 +32,9 @@ libafl_targets = { path = "../../../libafl_targets", features = [
serde = { version = "1.0.210", default-features = false, features = [ serde = { version = "1.0.210", default-features = false, features = [
"alloc", "alloc",
] } # serialization lib ] } # serialization lib
lain = { version = "0.5.5", features = [ lain = { version = "0.5.6", features = [
"serde_support", "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 # TODO Include it only when building cc
libafl_cc = { path = "../../../libafl_cc" } libafl_cc = { path = "../../../libafl_cc" }
log = { version = "0.4.22", features = ["release_max_level_info"] } log = { version = "0.4.22", features = ["release_max_level_info"] }

View File

@ -143,7 +143,7 @@ backtrace = { workspace = true, default-features = true, optional = true } # Use
ctor = { optional = true, version = "0.2.9" } ctor = { optional = true, version = "0.2.9" }
miniz_oxide = { version = "0.8.0", optional = true } miniz_oxide = { version = "0.8.0", optional = true }
hostname = { version = "0.4.0", optional = true } # Is there really no gethostname in the stdlib? 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 = [ nix = { workspace = true, optional = true, default-features = false, features = [
"fs", "fs",
"signal", "signal",

View File

@ -263,10 +263,6 @@ macro_rules! impl_rng_core {
fn fill_bytes(&mut self, dest: &mut [u8]) { fn fill_bytes(&mut self, dest: &mut [u8]) {
rand_core::impls::fill_bytes_via_next(self, dest) 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))
}
} }
}; };
} }