We can't set the SHA1PRNG random source reliably from within Akka. See #2977

This commit is contained in:
Björn Antonsson 2013-02-08 16:20:40 +01:00
parent a31d98340f
commit a54659e5b4
4 changed files with 4 additions and 21 deletions

View file

@ -48,7 +48,6 @@ object Configuration {
protocol = "TLSv1"
random-number-generator = "%s"
enabled-algorithms = [%s]
sha1prng-random-source = "/dev/./urandom"
}
}
}
@ -65,8 +64,7 @@ object Configuration {
val fullConfig = config.withFallback(AkkaSpec.testConf).withFallback(ConfigFactory.load).getConfig("akka.remote.netty.ssl.ssl")
val settings = new SSLSettings(fullConfig)
val rng = NettySSLSupport.initializeCustomSecureRandom(settings.SSLRandomNumberGenerator,
settings.SSLRandomSource, NoLogging)
val rng = NettySSLSupport.initializeCustomSecureRandom(settings.SSLRandomNumberGenerator, NoLogging)
rng.nextInt() // Has to work
settings.SSLRandomNumberGenerator foreach {