diff --git a/core/kt-osrd-utils/src/main/kotlin/fr/sncf/osrd/utils/BloomFilter.kt b/core/kt-osrd-utils/src/main/kotlin/fr/sncf/osrd/utils/BloomFilter.kt index f4dc6c9b4a7..f8e00048a99 100644 --- a/core/kt-osrd-utils/src/main/kotlin/fr/sncf/osrd/utils/BloomFilter.kt +++ b/core/kt-osrd-utils/src/main/kotlin/fr/sncf/osrd/utils/BloomFilter.kt @@ -22,6 +22,7 @@ class BloomFilter(private val bitField: BitSet, private val nHash: Int) { var hash = value.hashCode() for (i in 0..nHash) { if (!bitField.get(hash % bitField.size())) return false + hash = hash.hashCode() } return true }