replace IllegalArgumentException with require

This commit is contained in:
2025-12-14 00:13:41 +01:00
parent 197beb828a
commit 87c606d6dd
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ class Blake2b(
override val bytes: Int,
) : HashFunction {
init {
if (bytes !in 1..64) throw IllegalArgumentException()
require(bytes in 1..64)
}
override val block: Int