diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-12-07 05:43:34 +0400 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-12-07 05:43:34 +0400 |
commit | fea88b61a1ddcdccbb2d889ff832aa26bf95c567 (patch) | |
tree | 398130974f2cc565d79a05e8ed82b87c093b74c4 /core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java | |
parent | ba79d393c9963e0250161f04144502ae3d2053b9 (diff) |
Use high-precision timer, if available, to seed random
Support optional use of deprecated gmt_unix_time in Random
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java index 056d22aa..47fbecbc 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java @@ -52,7 +52,7 @@ public class TlsServerProtocol this.securityParameters = new SecurityParameters(); this.securityParameters.entity = ConnectionEnd.server; - this.securityParameters.serverRandom = createRandomBlock(secureRandom); + this.securityParameters.serverRandom = createRandomBlock(tlsServer.shouldUseGMTUnixTime(), secureRandom); this.tlsServerContext = new TlsServerContextImpl(secureRandom, securityParameters); this.tlsServer.init(tlsServerContext); |