diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index e0d9388c38b7cfe63c7290b242d51b59d4542ed2..7ab9091836bd046afcaf8cf40619c11dede1ec9e 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -920,7 +920,7 @@ int dtls1_send_server_hello(SSL *s) p=s->s3->server_random; Time=(unsigned long)time(NULL); /* Time */ l2n(Time,p); - RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-sizeof(Time)); + RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-4); /* Do the message type and length last */ d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);