File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ grothendieck {
19
19
20
20
# one of the algorithms defined here:
21
21
# https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SecureRandom
22
- secure-random-algo = "NativePRNG"
22
+ # Uncomment this to specify, otherwise use the default 'strong' implementation
23
+ # secure-random-algo = "NativePRNG"
23
24
24
25
network {
25
26
# Ethereum protocol version
Original file line number Diff line number Diff line change @@ -406,7 +406,8 @@ trait GenesisDataLoaderBuilder {
406
406
}
407
407
408
408
trait SecureRandomBuilder {
409
- lazy val secureRandom : SecureRandom = SecureRandom .getInstance(Config .secureRandomAlgo)
409
+ lazy val secureRandom : SecureRandom =
410
+ Config .secureRandomAlgo.map(SecureRandom .getInstance(_)).getOrElse(new SecureRandom ())
410
411
}
411
412
412
413
trait Node extends NodeKeyBuilder
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ object Config {
31
31
32
32
val shutdownTimeout : Duration = config.getDuration(" shutdown-timeout" ).toMillis.millis
33
33
34
- val secureRandomAlgo : String = config.getString(" secure-random-algo" )
34
+ val secureRandomAlgo : Option [String ] =
35
+ if (config.hasPath(" secure-random-algo" )) Some (config.getString(" secure-random-algo" ))
36
+ else None
35
37
36
38
object Network {
37
39
private val networkConfig = config.getConfig(" network" )
Original file line number Diff line number Diff line change 1
- -Dconfig.file =./conf/grothendieck.conf -Dlogback.configurationFile =./conf/logback.xml -Xss10M
1
+ -Dconfig.file =./conf/grothendieck.conf -Dlogback.configurationFile =./conf/logback.xml -J- Xss10M
Original file line number Diff line number Diff line change
1
+ -Dconfig.file=.\conf\grothendieck.conf
2
+ -Dlogback.configurationFile=.\conf\logback.xml
3
+ -Xss10M
You can’t perform that action at this time.
0 commit comments