use RND_RANDOM for the generation of SID

This commit is contained in:
Nikos Mavrogiannopoulos
2014-02-22 10:00:32 +01:00
parent 5ac591a37e
commit 25afdb5949
+1 -1
View File
@@ -959,7 +959,7 @@ int main(int argc, char** argv)
} }
set_cloexec_flag (fd, 1); set_cloexec_flag (fd, 1);
ret = gnutls_rnd(GNUTLS_RND_NONCE, ws.sid, sizeof(ws.sid)); ret = gnutls_rnd(GNUTLS_RND_RANDOM, ws.sid, sizeof(ws.sid));
if (ret < 0) { if (ret < 0) {
close(fd); close(fd);
mslog(&s, NULL, LOG_ERR, "Error generating SID"); mslog(&s, NULL, LOG_ERR, "Error generating SID");