Merge pull request #7697 from corda/shams-thread-safe-random

ENT-11678: Mark Corda `SecureRandom` as thread safe
This commit is contained in:
Adel El-Beik 2024-03-20 14:58:49 +00:00 committed by GitHub
commit a2ab283f4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ import java.security.SecureRandomSpi
import kotlin.system.exitProcess
class PlatformSecureRandomService(provider: Provider)
: Provider.Service(provider, "SecureRandom", ALGORITHM, PlatformSecureRandomSpi::class.java.name, null, null) {
: Provider.Service(provider, "SecureRandom", ALGORITHM, PlatformSecureRandomSpi::class.java.name, null, mapOf("ThreadSafe" to "true")) {
companion object {
const val ALGORITHM = "CordaPRNG"