diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-10-09 10:28:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-10-09 10:28:42 -0400 |
commit | 3da721dac9382c48812c8eba455528fd59af2eef (patch) | |
tree | aa3dfa04b2157499d84cd979cfaeed2cb8e11beb /ssl/d1_clnt.c | |
parent | f4c93b46edb51da71f09eda99e83eaf193a33c08 (diff) |
Refactor {client,server}_random to call an intermediate function
I'll be using this to make an option for randomizing the time.
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r-- | ssl/d1_clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index bfde14e09f..556ac9ccc7 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -801,7 +801,7 @@ int dtls1_client_hello(SSL *s) for (i=0;p[i]=='\0' && i<sizeof(s->s3->client_random);i++) ; if (i==sizeof(s->s3->client_random)) { - RAND_pseudo_bytes(p,sizeof(s->s3->client_random)); + ssl_fill_hello_random(s,0,p,sizeof(s->s3->client_random)); } /* Do the message type and length last */ |