summaryrefslogtreecommitdiff
path: root/lib/handshake.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handshake.c')
-rw-r--r--lib/handshake.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/handshake.c b/lib/handshake.c
index e9b6876b71..9a38cf8242 100644
--- a/lib/handshake.c
+++ b/lib/handshake.c
@@ -172,10 +172,9 @@ static int resume_copy_required_values(gnutls_session_t session)
*/
static int create_tls_random(uint8_t * dst)
{
- uint32_t tim;
int ret;
- /* Use weak random numbers for the most of the
+ /* Use nonce rng level for the most of the
* buffer except for the first 4 that are the
* system's time.
*/
@@ -184,6 +183,8 @@ static int create_tls_random(uint8_t * dst)
/* When fuzzying avoid timing dependencies */
memset(dst, 1, 4);
#else
+ uint32_t tim;
+
tim = gnutls_time(NULL);
/* generate server random value */
_gnutls_write_uint32(tim, dst);