Skip to content

Commit

Permalink
cleaned up some repetitive code and found a nonce generation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bhesh committed Oct 25, 2023
1 parent 8a8424b commit 73a97be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x509-ocsp/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ impl Nonce {
rng.fill_bytes(&mut random);
bytes.extend_from_slice(&random);
}
bytes.resize(length, 0);
Ok(Self(OctetString::new(bytes)?))
}
}
Expand Down

0 comments on commit 73a97be

Please sign in to comment.