bad-key-revoker: Reduce probability of hash collision during testing (#6790)

Create a jwkHash of 32 bytes rather than 2 bytes to reduce the
probability of a hash collision in the `TestInvoke` function.

Fixes https://github.com/letsencrypt/boulder/issues/6789
This commit is contained in:
Phil Porada 2023-03-31 16:27:12 -04:00 committed by GitHub
parent 22fd579cf2
commit a178943d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func TestSelectUncheckedRows(t *testing.T) {
func insertRegistration(t *testing.T, dbMap *db.WrappedMap, fc clock.Clock, addrs ...string) int64 {
t.Helper()
jwkHash := make([]byte, 2)
jwkHash := make([]byte, 32)
_, err := rand.Read(jwkHash)
test.AssertNotError(t, err, "failed to read rand")
contactStr := "[]"