mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Merge pull request #7697 from corda/shams-thread-safe-random
ENT-11678: Mark Corda `SecureRandom` as thread safe
This commit is contained in:
commit
a2ab283f4f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user