Skip to content

Commit 1140b43

Browse files
committed
reduce digest test duration
1 parent 7c9e1df commit 1140b43

File tree

1 file changed

+1
-1
lines changed
  • cryptography-providers-tests/src/commonMain/kotlin/default

1 file changed

+1
-1
lines changed

cryptography-providers-tests/src/commonMain/kotlin/default/DigestTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class DigestTest(provider: CryptographyProvider) : ProviderTest(provide
2424
assertEquals(digestSize, hasher.hash(ByteArray(0)).size)
2525
repeat(8) { n ->
2626
val maxSize = 10.0.pow(n).toInt()
27-
((1..10).map { CryptographyRandom.nextInt(maxSize) } + maxSize).forEach { size ->
27+
((1..5).map { CryptographyRandom.nextInt(maxSize) } + maxSize).forEach { size ->
2828
val data = ByteString(CryptographyRandom.nextBytes(size))
2929

3030
val digest = hasher.hash(data)

0 commit comments

Comments
 (0)