From e37c1fc7fe6b211c05f9124653c9b338e587ca8a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 19 Oct 2024 09:07:14 -0300 Subject: src/scrypt.go: Create HashInput and CheckInput for named arguments --- tests/fuzz/api/scrypt.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/fuzz/api/scrypt.go') diff --git a/tests/fuzz/api/scrypt.go b/tests/fuzz/api/scrypt.go index 8e785a5..c037add 100644 --- a/tests/fuzz/api/scrypt.go +++ b/tests/fuzz/api/scrypt.go @@ -14,7 +14,11 @@ func api(f *testing.F) { return } - _, err := Hash(password, salt) + input := HashInput{ + Password: password, + Salt: salt, + } + _, err := Hash(input) if err != nil { t.Errorf("Failed on: %#v\n", err) } -- cgit v1.2.3