Skip to content

Commit

Permalink
reduce digest test duration
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Oct 11, 2024
1 parent 7c9e1df commit 1140b43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class DigestTest(provider: CryptographyProvider) : ProviderTest(provide
assertEquals(digestSize, hasher.hash(ByteArray(0)).size)
repeat(8) { n ->
val maxSize = 10.0.pow(n).toInt()
((1..10).map { CryptographyRandom.nextInt(maxSize) } + maxSize).forEach { size ->
((1..5).map { CryptographyRandom.nextInt(maxSize) } + maxSize).forEach { size ->
val data = ByteString(CryptographyRandom.nextBytes(size))

val digest = hasher.hash(data)
Expand Down

0 comments on commit 1140b43

Please sign in to comment.