mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
core: make newSecureRandom() a one-liner
This commit is contained in:
parent
ba96282591
commit
ea7f9177d4
@ -10,9 +10,7 @@ import java.security.*
|
||||
import java.security.interfaces.ECPublicKey
|
||||
import net.i2p.crypto.eddsa.KeyPairGenerator as EddsaKeyPairGenerator
|
||||
|
||||
fun newSecureRandom(): SecureRandom {
|
||||
return SecureRandom.getInstance("NativePRNGNonBlocking")
|
||||
}
|
||||
fun newSecureRandom() = SecureRandom.getInstance("NativePRNGNonBlocking")
|
||||
|
||||
// "sealed" here means there can't be any subclasses other than the ones defined here.
|
||||
sealed class SecureHash private constructor(bits: ByteArray) : OpaqueBytes(bits) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user