mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Seed a (not really) random value with time(NULL), not the pointer value.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: context.c,v 1.24 2000/06/22 21:59:23 tale Exp $ */
|
/* $Id: context.c,v 1.25 2000/06/26 20:30:37 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ lwres_context_create(lwres_context_t **contextp, void *arg,
|
|||||||
ctx->sock = -1;
|
ctx->sock = -1;
|
||||||
|
|
||||||
ctx->timeout = LWRES_DEFAULT_TIMEOUT;
|
ctx->timeout = LWRES_DEFAULT_TIMEOUT;
|
||||||
ctx->serial = (lwres_uint32_t)ctx; /* XXXMLG */
|
ctx->serial = time(NULL); /* XXXMLG or BEW */
|
||||||
|
|
||||||
if ((flags & LWRES_CONTEXT_SERVERMODE) == 0)
|
if ((flags & LWRES_CONTEXT_SERVERMODE) == 0)
|
||||||
(void)context_connect(ctx); /* XXXMLG */
|
(void)context_connect(ctx); /* XXXMLG */
|
||||||
|
Reference in New Issue
Block a user