chore: use range comparison here

This commit is contained in:
infi 2026-05-21 15:50:06 +02:00
parent ebf279cf25
commit 112536d2b1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ object ULID {
)
fun makeSpecial(timestamp: Long, entropy: ByteArray = fetchEntropy()): String {
if (timestamp < minTimestamp || timestamp > maxTimestamp) {
if (timestamp !in minTimestamp..maxTimestamp) {
throw IllegalArgumentException("timestamp out of range: $timestamp")
}