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>2014-04-16 11:32:54 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-04-16 11:32:54 +0400
commit240b9c03eee7fa39d20018d82edc66d244b61d6f (patch)
tree804554d3982b2a96377dfa3a772623948a1193c5 /core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
parent1b2efc5633397c40766389d56f0267fd94579b28 (diff)
Use a separate PRNG for nonces
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.java2
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 5994c90a..8499b83e 100644
--- a/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/TlsServerProtocol.java
@@ -56,7 +56,7 @@ public class TlsServerProtocol
this.tlsServerContext = new TlsServerContextImpl(secureRandom, securityParameters);
this.securityParameters.serverRandom = createRandomBlock(tlsServer.shouldUseGMTUnixTime(),
- tlsServerContext.getSecureRandom(), ExporterLabel.server_random);
+ tlsServerContext.getNonceRandomGenerator());
this.tlsServer.init(tlsServerContext);
this.recordStream.init(tlsServerContext);