Skip to content

Commit

Permalink
Change param rnges
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Nov 1, 2024
1 parent 7c932c8 commit 9d2d677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/scrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ pub struct ScryptRandParams(pub scrypt::Params);
impl<'a> Arbitrary<'a> for ScryptRandParams {
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
let log_n = u.int_in_range(0..=15)?;
let r = u.int_in_range(1..=32)?;
let p = u.int_in_range(1..=16)?;
let r = u.int_in_range(1..=16)?;
let p = u.int_in_range(1..=8)?;
let len = u.int_in_range(10..=64)?;

let params = scrypt::Params::new(log_n, r, p, len).unwrap();
Expand Down

0 comments on commit 9d2d677

Please sign in to comment.