Skip to content

Commit

Permalink
Tests: Fix false positive proptest failures. Some input/bad_salt comb…
Browse files Browse the repository at this point in the history
…inations would still produce the first same byte, so when size is 1, the proptest would fail. Set min. size to be 5.
  • Loading branch information
brycx committed Feb 4, 2019
1 parent 9dd8608 commit f2a5b52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mod public {
input
};

let size_checked = if size == 0 {
let size_checked = if size < 5 {
32
} else {
size
Expand Down Expand Up @@ -210,7 +210,7 @@ mod public {
input
};

let size_checked = if size == 0 {
let size_checked = if size < 5 {
32
} else {
size
Expand Down Expand Up @@ -241,7 +241,7 @@ mod public {
input
};

let size_checked = if size == 0 {
let size_checked = if size < 5 {
32
} else {
size
Expand Down

0 comments on commit f2a5b52

Please sign in to comment.