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/DTLSServerProtocol.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/DTLSServerProtocol.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
index fbb3336f..3475134c 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/DTLSServerProtocol.java
@@ -46,7 +46,7 @@ public class DTLSServerProtocol
SecurityParameters securityParameters = new SecurityParameters();
securityParameters.entity = ConnectionEnd.server;
- securityParameters.serverRandom = TlsProtocol.createRandomBlock(secureRandom);
+ securityParameters.serverRandom = TlsProtocol.createRandomBlock(server.shouldUseGMTUnixTime(), secureRandom);
ServerHandshakeState state = new ServerHandshakeState();
state.server = server;