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/TlsClientProtocol.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/TlsClientProtocol.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java index f43235b1..5a546618 100644 --- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java +++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java @@ -74,7 +74,7 @@ public class TlsClientProtocol this.securityParameters = new SecurityParameters(); this.securityParameters.entity = ConnectionEnd.client; - this.securityParameters.clientRandom = createRandomBlock(secureRandom); + this.securityParameters.clientRandom = createRandomBlock(tlsClient.shouldUseGMTUnixTime(), secureRandom); this.tlsClientContext = new TlsClientContextImpl(secureRandom, securityParameters); this.tlsClient.init(tlsClientContext); |