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

View File

@ -15,7 +15,7 @@ import java.security.SecureRandomSpi
import kotlin.system.exitProcess import kotlin.system.exitProcess
class PlatformSecureRandomService(provider: Provider) 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 { companion object {
const val ALGORITHM = "CordaPRNG" const val ALGORITHM = "CordaPRNG"