Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-12-07 05:43:34 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-12-07 05:43:34 +0400
commitfea88b61a1ddcdccbb2d889ff832aa26bf95c567 (patch)
tree398130974f2cc565d79a05e8ed82b87c093b74c4 /core/src/main/java/org/bouncycastle/crypto/tls/TlsClientProtocol.java
parentba79d393c9963e0250161f04144502ae3d2053b9 (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.java2
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);